Table of contents
1. Register your bot on Telegram
First, you need to tell Telegram you want to register a Bot. To do this, send the BotFather a /newbot command. You get a token back. We’ll use it in our code to authenticate our app against Telegram servers. See the screenshot below. Keep your token in a safe place — i.e., don’t commit it to your version control system.
token =
const telUrl = 'api.telegram.org/bot/' + token;
Set a Webhook
core.telegram.org/bots/api#setwebhook
Get Webhook Info
Telegram docs. here