diff --git a/td.go b/td.go index fb4c309..bc62990 100644 --- a/td.go +++ b/td.go @@ -23,7 +23,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64) { fmt.Printf("Getting details for chatID64 %d ...\n", chat) - chatDetails, err := c.GetChat(chatID64) + chatDetails, err := c.GetChat(chat) failOnError(err, "getHistory : GetChat") fmt.Printf("Exporting historic messages for chat %d (%s) ...\n", chat, chatDetails.Title)