> For the complete documentation index, see [llms.txt](https://docs.mavibot.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mavibot.ai/chatbot/quick_automation/telegram.md).

# Telegram quick automation

You can now fully automate your private Telegram channels and groups (membership clubs) with Mavibot.

<div data-with-frame="true"><figure><img src="/files/ADCsTbnGWz7MnOFArv4h" alt=""><figcaption></figcaption></figure></div>

Access after payment, adding and removing members, subscription expiry — all handled automatically.

## How to add a bot to a group

**Useful information**

A Telegram group is a communication channel between participants: all participants can write in it.

The Telegram channel is a one-way means of communication. Only the owner or administrators can send messages, while the rest of the participants can only view them and leave comments.

#### How to add a bot to a Telegram group/channel

This feature for the bot is included in BotFather:

Step 1. Go to the bot settings:

<div data-with-frame="true"><figure><img src="/files/ZO1fepUxuJtVhklnXir2" alt="" width="563"><figcaption></figcaption></figure></div>

Step 2. Click on **"Allow Groups?'**

<div data-with-frame="true"><figure><img src="/files/aVbh6NzwXppuw3lbPKbc" alt="" width="563"><figcaption></figcaption></figure></div>

Step 3. There should be an enabled status.

<div data-with-frame="true"><figure><img src="/files/1hMUckSODKTNe2eIn9EK" alt="" width="563"><figcaption></figcaption></figure></div>

### Add a bot as an administrator in a group/channel

In order to automate work in chats and channels, you need to add your own bot as an Administrator.

How to do it?

Step 1. Go to Group/Channel Management and select the **Administrators** tab

<div data-with-frame="true"><figure><img src="/files/5EjWdRhypNeMGxAbc506" alt="" width="563"><figcaption></figcaption></figure></div>

Step 2. Click the **"Add Admin"** button.

<div data-with-frame="true"><figure><img src="/files/0g1jahuRcNXcCCsZnSXs" alt="" width="563"><figcaption></figcaption></figure></div>

Step 3. Enter your bot's username in the search box.

<div data-with-frame="true"><figure><img src="/files/ydiPE5LvpeqDS0OHNiOl" alt="" width="563"><figcaption></figcaption></figure></div>

Step 4. For full functionality, ensure the bot has the rights to read and delete messages.

<div data-with-frame="true"><figure><img src="/files/NDWbTHBj1WETtjJG0Nkl" alt="" width="375"><figcaption></figcaption></figure></div>

### Automation settings

To automate your subscription-based private clubs, hover over "Builder". A menu will appear with the Telegram automation tab.

<div data-with-frame="true"><figure><img src="/files/Oqklu8OIMXxK4zORBHKi" alt="" width="563"><figcaption></figcaption></figure></div>

Then click "Add automation". This will open the automation settings with two tabs: General settings and Message settings.

## Main settings

In the general settings, select the bot connected to your private channel or group:

<div data-with-frame="true"><figure><img src="/files/8VO33B0QDDpVDnlZRGYW" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
Please note!

If the bot is not connected to a channel or group, the channel and group selector will show "No groups available".
{% endhint %}

Then select the group or channel where the bot is connected as an administrator.

<div data-with-frame="true"><figure><img src="/files/PjYSV9p2y9IlrKZWZ1wW" alt="" width="563"><figcaption></figcaption></figure></div>

In your Telegram channel settings, create an invite link with join request approval enabled (turn on Request to join).

<div data-with-frame="true"><figure><img src="/files/HREUk3EEgH9ktMEciXSN" alt="" width="375"><figcaption></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="/files/SgepPG4wmKTw11qrWhy6" alt="" width="375"><figcaption></figcaption></figure></div>

Once created, copy the link and paste it into the designated field.

<div data-with-frame="true"><figure><img src="/files/m387z2xYjwFV2YMbopOW" alt="" width="563"><figcaption></figcaption></figure></div>

For the bot trigger condition, you can keep the single "/start" condition or add additional ones separated by a semicolon (;).

<div data-with-frame="true"><figure><img src="/files/inyeZkItFeUikWY1bxEr" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
Note!

Trigger conditions can only be written in Latin characters.
{% endhint %}

Next, select the payment service for subscription billing.

<div data-with-frame="true"><figure><img src="/files/9uQhJuSxuSOBzLGnggNQ" alt="" width="563"><figcaption></figcaption></figure></div>

Then set up your subscription plans.

<div data-with-frame="true"><figure><img src="/files/Uga9gT0XwrXWT8yGwP1d" alt="" width="563"><figcaption></figcaption></figure></div>

Fill in the following:

1. Plan name;
2. Plan price;
3. Number of days of access to the channel or group (period).

You can create multiple plans for one channel.

<div data-with-frame="true"><figure><img src="/files/sHJVwoLNGrsTSYVdnI4j" alt=""><figcaption></figcaption></figure></div>

Now click "Save" and move on to the message settings.

## Message settings

In the "Message settings" tab, configure the following message types:

<div data-with-frame="true"><figure><img src="/files/pvoSl1a7bQw5ldNOTFM1" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
Welcome message — this is the entry point to the subscription purchase funnel (NOT the first message in the channel).
{% endhint %}

You can write custom text for each message or keep the default. Then click "Save".

You can also add extra buttons with links (for example, if you want to send your customers or subscribers links to your website, course, etc.)

<div data-with-frame="true"><figure><img src="/files/hn9d8But5G3ZOjSX1w3H" alt=""><figcaption></figcaption></figure></div>

{% hint style="success" %}
Plan selection buttons are generated automatically based on your plan settings in the Main Settings section.

No need to create additional purchase buttons manually.
{% endhint %}

{% hint style="success" %}
Done! Your club subscription automation is all set — configured in just a few simple steps.
{% endhint %}

How automation works without changing the Message Settings tab

<div data-with-frame="true"><figure><img src="/files/2KtqrU3REqG6cgdRsMyp" alt="" width="563"><figcaption></figcaption></figure></div>

No more manually checking payments or managing members. Mavibot handles access control and keeps your group organized automatically.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.mavibot.ai/chatbot/quick_automation/telegram.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.
