make ChatID int64 for SetGameScoreConfig

It's int64 everywhere else.
bot-api-6.1
Robert Vollmert 2018-01-12 12:12:32 +01:00
parent f8145e3a68
commit 9e8d16e1a8
1 changed files with 2 additions and 2 deletions

View File

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