Chat Bot DIY: Telegram

Photo by Christian Wiediger on Unsplash

Chat Bot DIY: Telegram

Easy Way chat bots: Telegram helps

Roger Colque Calcina's photo
Roger Colque Calcina
·May 26, 2022·

1 min read

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.

image.png

api.telegram.org/bot

token =

const telUrl = 'api.telegram.org/bot/' + token;

image.png

Set a Webhook

core.telegram.org/bots/api#setwebhook

Get Webhook Info

Telegram docs. here

 
Share this