# Telegram Bot Setup

## Inviting the Telegram bot

* The Telegram bot can be added to your **group** using the [following link](<https://t.me/alphabot_app_bot?startgroup >).
* To add the bot to a **channel**, you will need to select Menu > Manage Channel > Administrators > Add Administrator, and then search for the bot by name: `alphabot_app_bot`

## Channels: Required Permissions

As channels are read-only for regular members, you'll have to give the bot the Admin rights to `post messages` and `edit messages of others` within that channel.&#x20;

![](/files/wjKcjJ69IhQoX39niHKN)

## **Groups: Required Permissions**

By default, all group members are able to send messages, so there are no specific permissions required for the bot to operate in groups. However, for certain functionalities, the bot requires Admin rights. Here's the breakdown:

* **Viewing Group Members**: The bot needs Admin rights to access and see the list of group members. Without these permissions, it cannot properly handle Telegram requirements.
* **Pinning and Unpinning Messages**: To automatically pin and unpin messages, you must grant the bot Admin rights with the permission to manage pins.

&#x20;![](/files/sOwea7qljkW1oX3qrMO9)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alphabot-docs.gitbook.io/alphabot/the-bot/telegram-bot/telegram-bot-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
