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.
const telUrl = 'api.telegram.org/bot/' + token;
Set a Webhook
Get Webhook Info
Telegram docs. here