upd
This commit is contained in:
parent
dfc8573896
commit
3667ff6ca9
8
main.go
8
main.go
@ -16,8 +16,8 @@ import (
|
|||||||
type MsgDirection string
|
type MsgDirection string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
MsgIncoming string = `incoming`
|
Incoming string = `incoming`
|
||||||
MsgOutgoing string = `outgoing`
|
Outgoing string = `outgoing`
|
||||||
)
|
)
|
||||||
|
|
||||||
type ChatWarsMessage struct {
|
type ChatWarsMessage struct {
|
||||||
@ -180,9 +180,9 @@ func ListenCW(c *tdlib.Client) {
|
|||||||
MsgID64: updateMsg.Message.ID,
|
MsgID64: updateMsg.Message.ID,
|
||||||
}
|
}
|
||||||
if senderUserID == ownUserID32 {
|
if senderUserID == ownUserID32 {
|
||||||
m.Direction = MsgOutgoing
|
m.Direction = Outgoing
|
||||||
} else {
|
} else {
|
||||||
m.Direction = MsgIncoming
|
m.Direction = Incoming
|
||||||
}
|
}
|
||||||
|
|
||||||
b, err := json.Marshal(m)
|
b, err := json.Marshal(m)
|
||||||
|
Loading…
Reference in New Issue
Block a user