From 012c2a80339f2ad52cb7403d9db7e846ef40fb23 Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 6 May 2019 11:26:43 +0800 Subject: [PATCH] type mismatch --- td.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td.go b/td.go index 1d43f3b..e8651c0 100644 --- a/td.go +++ b/td.go @@ -81,7 +81,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) { chat = *chatID64 } - if historySenderUserID64 != 0 { + if historySenderUserID64 != int64(0) { userDetails, err := c.GetUser(senderUserID) chatDetails, err := c.GetChat(chat) fmt.Printf("Exporting historic messages for chat %d (%s) from user %d (%s)...\n", chat, chatDetails.Title, *senderUserID64, userDetails.Username)