Skip to main content

Chat Bot DIY: Telegram

Easy Way chat bots: Telegram helps

Updated 1 min readMarkdown
Part of seriesDIY ChatBot Cases: Telegram
Chat Bot DIY: Telegram

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

About the author

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

No comments yet. Be the first to comment.