type mismatch

This commit is contained in:
shoopea 2019-05-06 11:26:43 +08:00
parent f1e4d93ff2
commit 012c2a8033

2
td.go
View File

@ -81,7 +81,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
chat = *chatID64 chat = *chatID64
} }
if historySenderUserID64 != 0 { if historySenderUserID64 != int64(0) {
userDetails, err := c.GetUser(senderUserID) userDetails, err := c.GetUser(senderUserID)
chatDetails, err := c.GetChat(chat) 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) fmt.Printf("Exporting historic messages for chat %d (%s) from user %d (%s)...\n", chat, chatDetails.Title, *senderUserID64, userDetails.Username)