> For the complete documentation index, see [llms.txt](https://tgtaps.gitbook.io/tgtaps-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tgtaps.gitbook.io/tgtaps-docs/mini-app-settings/telegram-messages.md).

# Telegram messages

When users open your bot, the bot sends messages. These messages can be configured in settings in “Telegram tab”. You can configure the following things in the message:

* text of the message;
* join app button;
* buttons with URL;
* buttons with commands.

For example, the following settings:

<figure><img src="/files/1QCS1qSEIgEkbAFTHpKQ" alt=""><figcaption></figcaption></figure>

Will produce the following message:

<figure><img src="/files/qBytytGLjgm64vjO4PBr" alt=""><figcaption></figcaption></figure>

You can add chain of messages. For example, the message contains the button with command`/how_app_works` and the message which response to it.

For example, add a button to the existing message:

<figure><img src="/files/juA64mXTgmCM53qwJYWT" alt=""><figcaption></figcaption></figure>

When the button is clicked, the following message will be sent:

<figure><img src="/files/ayJV6ljgt7OoiHg66cBz" alt=""><figcaption></figcaption></figure>

The result is:

<figure><img src="/files/Jb7q0bWTnlGHwm1v4XXX" alt=""><figcaption></figcaption></figure>

***

Something unclear in docs or you know how to improve article? [Message us in community!](https://docs.tgtaps.com/tgtaps-docs/readme/community)\
We will answer you and then promise to improve the article within 3 days.


---

# 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://tgtaps.gitbook.io/tgtaps-docs/mini-app-settings/telegram-messages.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.
