2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-23 18:38:01 +00:00

src: Support API v3.5 provider_data parameter

This commit is contained in:
GochoMugo 2017-11-27 08:15:41 +03:00
parent 57dec19bab
commit 012e7df35f
No known key found for this signature in database
GPG Key ID: 7B6A01CB57AA39E4
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,8 @@ Added:
1. Add Bot API v3.4 methods:
* (#439) *TelegramBot#editMessageLiveLocation*, *TelegramBot#stopMessageLiveLocation* (by @kamikazechaser)
* (#440) *TelegramBot#setChatStickerSet*, *TelegramBot#deleteChatStickerSet* (by @kamikazechaser)
1. Support Bot API v3.5:
* Support `provider_data` parameter in *TelegramBot#sendInvoice* (by @GochoMugo)
1. Add `metadata` argument in `message` event (and
friends e.g. `text`, `audio`, etc.) (#409) (by @jlsjonas, @GochoMugo)
1. Add forward-compatibility i.e. support future additional Telegram options (by @GochoMugo)

View File

@ -1557,6 +1557,7 @@ class TelegramBot extends EventEmitter {
form.start_parameter = startParameter;
form.currency = currency;
form.prices = JSON.stringify(prices);
form.provider_data = JSON.stringify(form.provider_data);
return this._request('sendInvoice', { form });
}