upd
This commit is contained in:
parent
b33c915254
commit
dca8cfbea9
6
td.go
6
td.go
@ -62,15 +62,11 @@ func ListenCW(c *tdlib.Client) {
|
||||
|
||||
m := ChatWarsMessage{
|
||||
UserID64: ownUserID64,
|
||||
ChatID64: updateMsg.Message.ChatID,
|
||||
MsgDate: updateMsg.Message.Date,
|
||||
MsgText: string(txt),
|
||||
MsgID64: updateMsg.Message.ID,
|
||||
}
|
||||
if senderUserID == ownUserID32 {
|
||||
m.Direction = Outgoing
|
||||
} else {
|
||||
m.Direction = Incoming
|
||||
}
|
||||
|
||||
b, err := json.Marshal(m)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user