From 9e8d16e1a8527e9fbb76b2f40a221d3a244055c4 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 12 Jan 2018 12:12:32 +0100 Subject: [PATCH] make ChatID int64 for SetGameScoreConfig It's int64 everywhere else. --- configs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs.go b/configs.go index c0293ce..6c12d64 100644 --- a/configs.go +++ b/configs.go @@ -676,7 +676,7 @@ type SetGameScoreConfig struct { Score int Force bool DisableEditMessage bool - ChatID int + ChatID int64 ChannelUsername string MessageID int InlineMessageID string @@ -689,7 +689,7 @@ func (config SetGameScoreConfig) values() (url.Values, error) { v.Add("score", strconv.Itoa(config.Score)) if config.InlineMessageID == "" { if config.ChannelUsername == "" { - v.Add("chat_id", strconv.Itoa(config.ChatID)) + v.Add("chat_id", strconv.FormatInt(config.ChatID, 10)) } else { v.Add("chat_id", config.ChannelUsername) }