From 88ac74be9bacf52d1b4c063e67d2afce2c83cbfe Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 3 May 2019 18:29:07 +0800 Subject: [PATCH] fix --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),