From e55e8bc55aa771d1a0bcc4d05a5f135020ceba10 Mon Sep 17 00:00:00 2001 From: Dmytro Kurest Date: Sun, 28 Jun 2020 22:13:32 +0300 Subject: [PATCH] Fixes error parameter name for AnswerPreCheckoutQuery --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index e6c2cc8..0bac814 100644 --- a/bot.go +++ b/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)