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

# Telegram WebApp

## Widget do Telegram

Agora que você sabe como criar um widget e incorporá-lo ao seu site, você pode criar um **botão de Aplicativo Web no Telegram** que abre seu site como um app dentro do mensageiro.

{% hint style="info" %}
Em vez de um site completo, você pode criar uma página de destino com uma única seção que apresenta o widget de reserva online e compartilhá-la com seus clientes como um botão do Telegram usando o botão de Aplicativo Web.
{% endhint %}

**Etapa 1. Criando o bloco**

Crie um bloco no construtor de chatbot.

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

{% hint style="success" %}
Observação!

Não se esqueça de salvar as configurações do bloco.
{% endhint %}

**Etapa 2. Criar um botão de WebApp**

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

Em seguida, na janela modal aberta, insira o texto do botão e escolha o tipo “WebApp”.

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

Depois, selecione o site que você criou no MaviBot.

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

Se o seu site não foi criado no MaviBot, selecione a aba “Especificar um link externo” e insira a URL do seu próprio site.

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

O botão de Aplicativo Web com o widget de reserva online ficará então disponível no bot.


---

# 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/pt/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.
