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

# Link a Telegram group or channel to Ayrshare

> Connect Telegram to Ayrshare by adding @AyrshareBot as an administrator so you can publish and delete posts in your group or channel.

Telegram uses bots to allow posting to your group or channel.
You will need to give admin access to the Ayrshare Telegram Bot via the Telegram mobile app to enable publishing and deleting.

> [!WARNING]
>
> **Add the correct bot: `@AyrshareBot`** (its display name shows as "Ayrshare", with a red logo like the one below).
>
> ![The official @AyrshareBot avatar in Telegram](https://mintcdn.com/ayrshare-docs/VFTdJMdxRjLSqI5Z/images/dashboard/telegram-ayrshare-bot-avatar.jpg?fit=max\&auto=format\&n=VFTdJMdxRjLSqI5Z\&q=85\&s=739f496b86630f502b507b919b6bcdbe)
>
> Searching Telegram for "Ayrshare" returns several bots with similar names or logos that are
> **not** ours — for example the usernames `@AyrShareSocialMediaBot`, `@ayrshare_bot`,
> `@kylo_post_bot`, and `@AyrshareTestbot`. Only **`@AyrshareBot`** works with Ayrshare. If you
> add any other bot, your linking code will never be received and nothing will happen. Before
> adding it, open the bot and confirm its username is exactly **`@AyrshareBot`**.

> [!NOTE]
>
> You must have administrative access to the channel or group to add a bot. Telegram channel posts
> show the channel name and logo as the author. Telegram group posts show the Ayrshare name and logo
> as the author.

> [!NOTE]
>
> **The bot must be an Administrator — not just a member.** `@AyrshareBot` has Telegram Privacy
> Mode enabled, so if it is added only as a member it never receives your `Code:` message and
> linking silently fails with no error. Promote it to Administrator in the same channel or group
> where you paste the code.

## How to Link Telegram with Ayrshare

1. In the Telegram mobile app, go to the channel or group where you want to publish. Tap the three horizontal dots in the upper right corner and go to **Info**.

   ![Open Telegram app and select settings](https://mintcdn.com/ayrshare-docs/dKBti0xVDJrOZ19f/images/dashboard/telegram%20settings.webp?fit=max\&auto=format\&n=dKBti0xVDJrOZ19f\&q=85\&s=c77656b69e37530daa80f7cad7d499ab)

2. Add Ayrshare as an Admin:

   <ul>
     <li>If a *Channel*, select **Administrators** and **Add Admin**.</li>

     <li>
       If a *Group*, add Ayrshare as a member by clicking "+ Add", and search for **Ayrshare** to
       add as a member. Next, select **Edit** in the upper right corner, click **Administrators,**
       and **Add Admin**.
     </li>
   </ul>

3. Search for **Ayrshare** and select the official bot **`@AyrshareBot`** (display name "Ayrshare"). Do not select any of the similarly named look-alike bots — see the warning above.

   ![Add the Ayrshare bot (@AyrshareBot)](https://mintcdn.com/ayrshare-docs/dKBti0xVDJrOZ19f/images/dashboard/telegram%20bot.webp?fit=max\&auto=format\&n=dKBti0xVDJrOZ19f\&q=85\&s=4088b217a9e013f20ac6df8e3cf0f008)

4. You will be asked to select permissions for the bot. Select all the permissions except the last two so the bot can post and delete on your behalf.

   ![Select permissions](https://mintcdn.com/ayrshare-docs/dKBti0xVDJrOZ19f/images/dashboard/telegram%20permissions%20bot.webp?fit=max\&auto=format\&n=dKBti0xVDJrOZ19f\&q=85\&s=a69c7527be5667f9236b0332d956bc7a)

5. Tap **Done** when complete.

6. In your Ayrshare Dashboard under Social Accounts you will be given a Telegram access code when you click on the Telegram icon.

7. Copy the code including the "Code:" part.

   ![Link Telegram](https://mintcdn.com/ayrshare-docs/BkNwRAXLA9nG0LQA/images/dashboard/link%20telegram.webp?fit=max\&auto=format\&n=BkNwRAXLA9nG0LQA\&q=85\&s=7b18ddee46dc2374ffc47578292dcc52)

8. In your Telegram group or channel at the chat prompt, paste this code and press enter/tap the send button. If successful, you will get a success message back in the channel or group.

> [!NOTE]
>
> It could take up to **5 minutes** for Telegram to send you the success message after you enter the
> code message, so please be patient.

![Paste the code in Telegram chat](https://mintcdn.com/ayrshare-docs/BkNwRAXLA9nG0LQA/images/dashboard/paste%20code.webp?fit=max\&auto=format\&n=BkNwRAXLA9nG0LQA\&q=85\&s=9e7d4f96f69fafec4fc1b888e7a4cca3)

The Telegram integration is complete. You can now publish via the API or Web App.

If you need help or have questions, please [chat with us](javascript:void\(0\)) or [contact us](mailto:support@ayrshare.com).

## Additional Telegram Information

Please see here for details on [posting to Telegram](https://www.ayrshare.com/docs/apis/post/social-networks/telegram.md), [getting analytics](https://www.ayrshare.com/docs/apis/analytics/overview.md), [managing comments](https://www.ayrshare.com/docs/apis/comments/overview.md), or [retrieving history.](https://www.ayrshare.com/docs/apis/history/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.