> For the complete documentation index, see [llms.txt](https://docs.myshch.io/myshch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.myshch.io/myshch/tutorials/for-event-organisers/settings-for-telegram-bot.md).

# 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
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, and the optional `goal` query parameter:

```
GET https://docs.myshch.io/myshch/tutorials/for-event-organisers/settings-for-telegram-bot.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
