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