Skip to main content

Command Palette

Search for a command to run...

Chat Bot DIY: Telegram

Easy Way chat bots: Telegram helps

Updated
1 min read
Chat Bot DIY: Telegram
R

i'm a software developer. i like mobile apps about geolocation-maps-ui-movies. also in web with html css js

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

https://api.telegram.org/bot

token =

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

image.png

Set a Webhook

https://core.telegram.org/bots/api#setwebhook

Get Webhook Info

Telegram docs. here