You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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});
The text was updated successfully, but these errors were encountered:
I have:
Introduction
Missing documentation of
secret_token
key ofoptions
argument onTelegramBot.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
The text was updated successfully, but these errors were encountered: