Telegram bot
22.12.2023
20
0
0
0
This is a program that, using the Telegram **API**, can perform various actions in chats without a person.
Telegram bots can be divided in different ways. Depending on the purpose of their creation or on their functionality, bots are often combined and incorporate several varieties at once. So, according to the purpose of their creation, TG bots are divided into:
- Manager bots - manage groups.
- Tool bots - created to perform a specific task, such as text transcription or translations
- Chat bots - for communicating with people and answering typical questions
In terms of how they work (how exactly they interact with the user), they can be conditionally divided into:
- Inline bots - they can be accessed from any chat to perform any function
- Classic - these are the bots that use the classic Telegram keyboard or buttons in the chat.
- Webaps - TG bots that have built their functionality on web interfaces
The existence of bots became possible due to the fact that Telegram has created a special API that you can connect to and use. It is simple and intuitive. But despite this, many libraries have appeared that are built around this API in one way or another. Here are just the most popular of them:
- aiogram - my chosen one)
- Python-telegram-bot
- TeleBot
- Telepot
- pyTelegramBotAPI
- twx.botapi
Used in
In this article you will see how I start creating bots for telegram, where I store the token and how I set it up. Including how to enable inline mode for the bot.
In this article, you will learn what is the difference between a regular TG bot and inline. How to activate inline mode for a bot and how to make it yourself. The entire example code is available, and the bot …