> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langbot.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to Telegram Bot

## Create Bot

Go to the [Telegram Bot Creation Page](https://t.me/botfather), follow the prompts, and create a bot.

<img src="https://mintcdn.com/langbot/ccEfWQOd_I5kaF_t/images/zh/deploy/bots/telegram/telegram_01.png?fit=max&auto=format&n=ccEfWQOd_I5kaF_t&q=85&s=fd15e357e008efaa53b726725c1f84a1" alt="Telegram Bot Creation" width="1450" height="246" data-path="images/zh/deploy/bots/telegram/telegram_01.png" />

<img src="https://mintcdn.com/langbot/ccEfWQOd_I5kaF_t/images/zh/deploy/bots/telegram/telegram_02.png?fit=max&auto=format&n=ccEfWQOd_I5kaF_t&q=85&s=38d1a4c4a0c78faeb48e3c8378b27d10" alt="Telegram Bot Creation" width="1444" height="686" data-path="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.

<img src="https://mintcdn.com/langbot/ccEfWQOd_I5kaF_t/images/zh/deploy/bots/telegram/telegram_03.png?fit=max&auto=format&n=ccEfWQOd_I5kaF_t&q=85&s=04f637873ded4a2e88acfa6c0fa37fe8" alt="Telegram Bot API Token" width="1446" height="720" data-path="images/zh/deploy/bots/telegram/telegram_03.png" />

## Connect to LangBot

Open the LangBot Webui page, create a new bot

<img src="https://mintcdn.com/langbot/ccEfWQOd_I5kaF_t/images/zh/deploy/bots/telegram/connect_to_langbot.png?fit=max&auto=format&n=ccEfWQOd_I5kaF_t&q=85&s=30c60e0ac72031e5fda385ceae1387a6" alt="Connect to LangBot" width="1024" height="1304" data-path="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.

<img src="https://mintcdn.com/langbot/ccEfWQOd_I5kaF_t/images/zh/deploy/bots/telegram/telegram_04.png?fit=max&auto=format&n=ccEfWQOd_I5kaF_t&q=85&s=bb8dc99e301d62a2f94fcb5b2e486ad1" alt="Telegram Bot Usage" width="1448" height="456" data-path="images/zh/deploy/bots/telegram/telegram_04.png" />

<img src="https://mintcdn.com/langbot/ccEfWQOd_I5kaF_t/images/zh/deploy/bots/telegram/telegram_05.png?fit=max&auto=format&n=ccEfWQOd_I5kaF_t&q=85&s=0c515c441c4f443b865e099be5e266b2" alt="Telegram Bot Usage" width="1458" height="1834" data-path="images/zh/deploy/bots/telegram/telegram_05.png" />
