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