Fixes error parameter name for AnswerPreCheckoutQuery

bot-api-6.1
Dmytro Kurest 2020-06-28 22:13:32 +03:00 committed by Dmytro Kurets
parent 7434b0456e
commit e55e8bc55a
1 changed files with 1 additions and 1 deletions

2
bot.go
View File

@ -881,7 +881,7 @@ func (bot *BotAPI) AnswerPreCheckoutQuery(config PreCheckoutConfig) (APIResponse
v.Add("pre_checkout_query_id", config.PreCheckoutQueryID) v.Add("pre_checkout_query_id", config.PreCheckoutQueryID)
v.Add("ok", strconv.FormatBool(config.OK)) v.Add("ok", strconv.FormatBool(config.OK))
if config.OK != true { if config.OK != true {
v.Add("error", config.ErrorMessage) v.Add("error_message", config.ErrorMessage)
} }
bot.debugLog("answerPreCheckoutQuery", v, nil) bot.debugLog("answerPreCheckoutQuery", v, nil)