2
0
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:
drGOD 2017-11-26 11:03:36 +03:00 committed by Gocho Mugo
parent fd337e91f2
commit 4586ebd10b

View File

@ -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 });
}