Closed
Description
Feature Request
I have:
- searched for such a feature request ( enhancement ) and found none
Introduction
Missing documentation of secret_token
key of options
argument on TelegramBot.setWebhook
method. This parameter is supported by Telegram and allows fulfill every request with a secret token that makes it harder to spoof Telegram requests.
Example
const secretToken = '...'; // <!-- your secret token
const bot = new TelegramBot(token, {polling: false});
bot.setWebhook(webhookUrl, {secret_token: secretToken});
Metadata
Metadata
Assignees
Labels
No labels