Files
LangBot/docs/en/usage/platforms/telegram.md
T

30 lines
1.1 KiB
Markdown

# Connect to Telegram Bot
## Create Bot
Go to the [Telegram Bot Creation Page](https://t.me/botfather), follow the prompts, and create a bot.
![Telegram Bot Creation](/assets/image/zh/deploy/bots/telegram/telegram_01.png)
![Telegram Bot Creation](/assets/image/zh/deploy/bots/telegram/telegram_02.png)
After creation, BotFather will return an API Token, please keep it safe. Next, turn off `Privacy Mode` to use it in group chats.
![Telegram Bot API Token](/assets/image/zh/deploy/bots/telegram/telegram_03.png)
## Connect to LangBot
Open the LangBot Webui page, create a new bot
![Connect to LangBot](/assets/image/zh/deploy/bots/telegram/connect_to_langbot.png)
After filling in, start LangBot. If configured successfully, the log will show `[02-02 16:48:15.263] manager.py (68) - [INFO] : Initializing platform adapter 1: telegram`, keep LangBot running.
## Use Bot
Now you can use the bot normally in groups or private messages.
![Telegram Bot Usage](/assets/image/zh/deploy/bots/telegram/telegram_04.png)
![Telegram Bot Usage](/assets/image/zh/deploy/bots/telegram/telegram_05.png)