Fixes error parameter name for AnswerPreCheckoutQuery
This commit is contained in:
parent
7434b0456e
commit
e55e8bc55a
1 changed files with 1 additions and 1 deletions
2
bot.go
2
bot.go
|
@ -881,7 +881,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue