This commit is contained in:
shoopea 2019-05-03 18:29:07 +08:00
parent 05f49beb73
commit 88ac74be9b

2
td.go
View File

@ -141,7 +141,7 @@ func getHistory(c *tdlib.Client) {
lastMsgID64 = -1 lastMsgID64 = -1
} else { } else {
for _, msg := range msgs.Messages { for _, msg := range msgs.Messages {
switch msg.Content { switch msg.Content.GetMessageContentEnum() {
case tdlib.MessageTextType: case tdlib.MessageTextType:
m := ChatWarsMessage{ m := ChatWarsMessage{
UserID64: int64(msg.SenderUserID), UserID64: int64(msg.SenderUserID),