commit
5435d1d8ea
|
@ -676,7 +676,7 @@ type SetGameScoreConfig struct {
|
||||||
Score int
|
Score int
|
||||||
Force bool
|
Force bool
|
||||||
DisableEditMessage bool
|
DisableEditMessage bool
|
||||||
ChatID int
|
ChatID int64
|
||||||
ChannelUsername string
|
ChannelUsername string
|
||||||
MessageID int
|
MessageID int
|
||||||
InlineMessageID string
|
InlineMessageID string
|
||||||
|
@ -689,7 +689,7 @@ func (config SetGameScoreConfig) values() (url.Values, error) {
|
||||||
v.Add("score", strconv.Itoa(config.Score))
|
v.Add("score", strconv.Itoa(config.Score))
|
||||||
if config.InlineMessageID == "" {
|
if config.InlineMessageID == "" {
|
||||||
if config.ChannelUsername == "" {
|
if config.ChannelUsername == "" {
|
||||||
v.Add("chat_id", strconv.Itoa(config.ChatID))
|
v.Add("chat_id", strconv.FormatInt(config.ChatID, 10))
|
||||||
} else {
|
} else {
|
||||||
v.Add("chat_id", config.ChannelUsername)
|
v.Add("chat_id", config.ChannelUsername)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue