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

# Telegram

To deploy an Agent on Telegram as a Telegram Bot, you need to create a new bot on Telegram. To do this, you need to follow these steps:

<Steps>
  <Step title="Create a Telegram Bot">
    [Open Telegram](https://web.telegram.org) on your Browser, then search for
    `@BotFather`

    <img src="https://mintlify.s3.us-west-1.amazonaws.com/sonianai/images/telegram/1.png" alt="BotFather" />

    <img src="https://mintlify.s3.us-west-1.amazonaws.com/sonianai/images/telegram/2.png" alt="BotFather" />

    Then type `/newbot` to trigger the new bot command. Follow the instructions and grab your API Token

    <img src="https://mintlify.s3.us-west-1.amazonaws.com/sonianai/images/telegram/3.png" alt="BotFather" />
  </Step>

  <Step title="Link an Agent to your Telegram Bot">
    From your Agent `Settings > Deploy` tab, select the Telegram integration and paste the HTTP Token you got from BotFather

    <img src="https://mintlify.s3.us-west-1.amazonaws.com/sonianai/images/telegram/4.png" alt="4" />

    <img src="https://mintlify.s3.us-west-1.amazonaws.com/sonianai/images/telegram/5.png" alt="5" />
  </Step>

  <Step title="Optionally add yout Telegram Bot to a Telegram channel">
    From your Telegram channel open the channel info panel and add the bot as an administrator.

    <img src="https://mintlify.s3.us-west-1.amazonaws.com/sonianai/images/telegram/6.png" alt="6" />

    <img src="https://mintlify.s3.us-west-1.amazonaws.com/sonianai/images/telegram/7.png" alt="7" />
  </Step>
</Steps>
