🤖 Simple telegram bot

by Anthony Axenov

Version 2 (July 22, 2021)

Download (168 downloads)

Just receiving messages from user (long polling) and reply them with some data. Extend this flow for your purposes!

Basically the whole flow was built around two HTTP requests: the first one is to get updates from API and the second one to send reply to user.

What you need to do to make it work is:
1) Set your bot token in `bot_token` variable with "double quotes"
2) Give all permissions needed (don't worry, there is nothing unusual)
3) Adjust delay in the last block, of you want to poll API not so often

Bot API docs: https://core.telegram.org/bots/api

5.0 average rating from 1 reviews

5 stars
1
4 stars
0
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.