Merge pull request #346 from Kurets/master

Fixes error parameter name for AnswerPreCheckoutQuery
bot-api-6.1
Syfaro 2020-07-21 01:32:48 -05:00 committed by GitHub
commit 2476225ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
bot.go
View File

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