diff --git a/td.go b/td.go index 02997d9..dade51e 100644 --- a/td.go +++ b/td.go @@ -141,7 +141,7 @@ func getHistory(c *tdlib.Client) { lastMsgID64 = -1 } else { for _, msg := range msgs.Messages { - switch msg.Content { + switch msg.Content.GetMessageContentEnum() { case tdlib.MessageTextType: m := ChatWarsMessage{ UserID64: int64(msg.SenderUserID),