Merge pull request #145 from robx/master

make ChatID int64 for SetGameScoreConfig
pull/151/head
Syfaro 8 years ago committed by GitHub
commit 5435d1d8ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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)
}