Files
LangBot/en/usage/platforms/telegram.mdx
T
Xiaoyu SuandJunyan Chin 310c566148 refactor: migration to mintlify
* 重构文档结构:移除 docs 目录,调整文件组织结构

* Reorder "插件 SDK API" section in docs.json

* Refactor and clarify various documentation sections

* Refine warnings and info boxes across multiple docs

* Refactor and simplify Japanese documentation content

* Update package.json to include mintlify as a dependency and add pnpm-lock.yaml for dependency management

* Update blog link and add description in docs.json

---------

Co-authored-by: Junyan Chin <[email protected]>
2026-02-21 23:55:53 +08:00

32 lines
1.1 KiB
Plaintext

---
title: "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](/images/zh/deploy/bots/telegram/telegram_01.png)
![Telegram Bot Creation](/images/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](/images/zh/deploy/bots/telegram/telegram_03.png)
## Connect to LangBot
Open the LangBot Webui page, create a new bot
![Connect to LangBot](/images/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](/images/zh/deploy/bots/telegram/telegram_04.png)
![Telegram Bot Usage](/images/zh/deploy/bots/telegram/telegram_05.png)