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});
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