mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 05:17:41 +00:00
src/telegram: JSON-serialize shipping_options in answerShippingQuery (#468)
This commit is contained in:
parent
fd337e91f2
commit
4586ebd10b
@ -1509,6 +1509,7 @@ class TelegramBot extends EventEmitter {
|
||||
answerShippingQuery(shippingQueryId, ok, form = {}) {
|
||||
form.shipping_query_id = shippingQueryId;
|
||||
form.ok = ok;
|
||||
form.shipping_options = JSON.stringify(form.shipping_options)
|
||||
return this._request('answerShippingQuery', { form });
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user