mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-22 09:57:10 +00:00
parent
542002ec0d
commit
dfe24a4d38
@ -440,6 +440,7 @@ that is being deprecated.
|
||||
| url | <code>String</code> | URL where Telegram will make HTTP Post. Leave empty to delete webHook. |
|
||||
| [options] | <code>Object</code> | Additional Telegram query options |
|
||||
| [options.certificate] | <code>String</code> \| <code>stream.Stream</code> | PEM certificate key (public). |
|
||||
| [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. |
|
||||
| [fileOptions] | <code>Object</code> | Optional file related meta-data |
|
||||
|
||||
<a name="TelegramBot+deleteWebHook"></a>
|
||||
|
@ -803,6 +803,7 @@ class TelegramBot extends EventEmitter {
|
||||
* delete webHook.
|
||||
* @param {Object} [options] Additional Telegram query options
|
||||
* @param {String|stream.Stream} [options.certificate] PEM certificate key (public).
|
||||
* @param {String} [options.secret_token] Optional secret token to be sent in a header `X-Telegram-Bot-Api-Secret-Token` in every webhook request.
|
||||
* @param {Object} [fileOptions] Optional file related meta-data
|
||||
* @return {Promise}
|
||||
* @see https://core.telegram.org/bots/api#setwebhook
|
||||
|
Loading…
x
Reference in New Issue
Block a user