all repos — telegram-bot-api @ 5435d1d8eaf19425b40aebf050f5fda3280c00cc

Golang bindings for the Telegram Bot API

Merge pull request #145 from robx/master

make ChatID int64 for SetGameScoreConfig
Syfaro syfaro@huefox.com
Fri, 12 Jan 2018 14:35:45 -0600
commit

5435d1d8eaf19425b40aebf050f5fda3280c00cc

parent

af15ab1ca783ca2dcf56f087587f1d4f48185c0b

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