all repos — telegram-bot-api @ 9e8d16e1a8527e9fbb76b2f40a221d3a244055c4

Golang bindings for the Telegram Bot API

make ChatID int64 for SetGameScoreConfig

It's int64 everywhere else.
Robert Vollmert rob@vllmrt.net
Fri, 12 Jan 2018 12:12:32 +0100
commit

9e8d16e1a8527e9fbb76b2f40a221d3a244055c4

parent

f8145e3a68e7bf0bc5ddb308709ddbb839606422

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M configs.goconfigs.go

@@ -676,7 +676,7 @@ UserID int

Score int Force bool DisableEditMessage bool - ChatID int + ChatID int64 ChannelUsername string MessageID int InlineMessageID string

@@ -689,7 +689,7 @@ v.Add("user_id", strconv.Itoa(config.UserID))

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) }