> 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/doc/uk/booking/telegram-webapp.md).

# Telegram WebApp

## Віджет Telegram

Тепер, коли ви знаєте, як створити віджет і вбудувати його на свій вебсайт, ви можете створити **кнопку Web App у Telegram** яка відкриває ваш сайт як застосунок у месенджері.

{% hint style="info" %}
Замість повного вебсайту ви можете створити цільову сторінку з одним розділом, що містить віджет онлайн-бронювання, і поділитися нею зі своїми клієнтами як кнопку Telegram за допомогою кнопки Web App.
{% endhint %}

**Крок 1. Створення блоку**

Створіть блок у конструкторі чатбота.

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

{% hint style="success" %}
Увага!

Не забудьте зберегти налаштування блоку.
{% endhint %}

**Крок 2. Створіть кнопку WebApp**

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

Далі в модальному вікні, що відкрилося, введіть текст кнопки та виберіть тип «WebApp».

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

Потім виберіть вебсайт, який ви створили в MaviBot.

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

Якщо ваш вебсайт не був створений у MaviBot, виберіть вкладку «Указати зовнішнє посилання» та введіть URL-адресу свого вебсайту.

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

Після цього кнопка Web App з віджетом онлайн-бронювання буде доступна в боті.


---

# 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.mavibot.ai/doc/uk/booking/telegram-webapp.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.
