diff --git a/td.go b/td.go index 0ff0488..77b13e6 100644 --- a/td.go +++ b/td.go @@ -72,7 +72,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) { var msgCount int32 = 0 var lastMsgTime time.Time = time.Now() - if chatID64 == 0 { + if &chatID64 == 0 { chat := user_chtwrsbot } else { chat = chatID64