# Settings for Telegram bot

To set up a Telegram bot to invite visitors into an event group, you need to:<br>

{% stepper %}
{% step %}
Turn on Show History mode in the Telegram group.
{% endstep %}

{% step %}
Add [<mark style="color:blue;">the bot as an admin to the event group</mark>](https://t.me/myshch_bot)<mark style="color:blue;">.</mark>
{% endstep %}

{% step %}
Prohibit users from inviting other participants.
{% endstep %}

{% step %}
Send the `/init` command in the Telegram group to initialize the bot.
{% endstep %}

{% step %}
Send the `/addevent 'Event ID'` command in the Telegram group

{% hint style="info" %}
You can also use the `/clear on` and `/clear off` commands. These commands are responsible for enabling and disabling the clearing of system messages when users join or leave a group.
{% endhint %}
{% endstep %}
{% endstepper %}

View step-by-step video instruction:

{% embed url="<https://youtu.be/5f80UpoHF-k>" %}


---

# 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://docs.myshch.io/myshch/tutorials/for-event-organisers/settings-for-telegram-bot.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.
