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:
parent
57dec19bab
commit
012e7df35f
@ -10,6 +10,8 @@ Added:
|
|||||||
1. Add Bot API v3.4 methods:
|
1. Add Bot API v3.4 methods:
|
||||||
* (#439) *TelegramBot#editMessageLiveLocation*, *TelegramBot#stopMessageLiveLocation* (by @kamikazechaser)
|
* (#439) *TelegramBot#editMessageLiveLocation*, *TelegramBot#stopMessageLiveLocation* (by @kamikazechaser)
|
||||||
* (#440) *TelegramBot#setChatStickerSet*, *TelegramBot#deleteChatStickerSet* (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
|
1. Add `metadata` argument in `message` event (and
|
||||||
friends e.g. `text`, `audio`, etc.) (#409) (by @jlsjonas, @GochoMugo)
|
friends e.g. `text`, `audio`, etc.) (#409) (by @jlsjonas, @GochoMugo)
|
||||||
1. Add forward-compatibility i.e. support future additional Telegram options (by @GochoMugo)
|
1. Add forward-compatibility i.e. support future additional Telegram options (by @GochoMugo)
|
||||||
|
@ -1557,6 +1557,7 @@ class TelegramBot extends EventEmitter {
|
|||||||
form.start_parameter = startParameter;
|
form.start_parameter = startParameter;
|
||||||
form.currency = currency;
|
form.currency = currency;
|
||||||
form.prices = JSON.stringify(prices);
|
form.prices = JSON.stringify(prices);
|
||||||
|
form.provider_data = JSON.stringify(form.provider_data);
|
||||||
return this._request('sendInvoice', { form });
|
return this._request('sendInvoice', { form });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user