diff --git a/CHANGELOG.md b/CHANGELOG.md index 19bd314..c4cbf75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/telegram.js b/src/telegram.js index 72f4283..72c0f79 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -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 }); }