File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -440,6 +440,7 @@ that is being deprecated.
440
440
| url | <code >String</code > | URL where Telegram will make HTTP Post. Leave empty to delete webHook. |
441
441
| [ options] | <code >Object</code > | Additional Telegram query options |
442
442
| [ options.certificate] | <code >String</code > \| <code >stream.Stream</code > | PEM certificate key (public). |
443
+ | [ options.secret_token] | <code >String</code > | A secret token to be sent in a header ` X-Telegram-Bot-Api-Secret-Token ` in every webhook request. |
443
444
| [ fileOptions] | <code >Object</code > | Optional file related meta-data |
444
445
445
446
<a name =" TelegramBot+deleteWebHook " ></a >
Original file line number Diff line number Diff line change @@ -803,6 +803,7 @@ class TelegramBot extends EventEmitter {
803
803
* delete webHook.
804
804
* @param {Object } [options] Additional Telegram query options
805
805
* @param {String|stream.Stream } [options.certificate] PEM certificate key (public).
806
+ * @param {String } [options.secret_token] Optional secret token to be sent in a header `X-Telegram-Bot-Api-Secret-Token` in every webhook request.
806
807
* @param {Object } [fileOptions] Optional file related meta-data
807
808
* @return {Promise }
808
809
* @see https://core.telegram.org/bots/api#setwebhook
You can’t perform that action at this time.
0 commit comments