Files
LangBot/en/usage/platforms/telegram.mdx
T

34 lines
1.2 KiB
Plaintext

---
title: "Telegram"
description: "Build a Telegram AI bot with LangBot. Connect GPT, Claude, Gemini, DeepSeek and Dify to Telegram chats and groups."
icon: "/images/platforms/telegram.svg"
---
## 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)