# Telegram WebApp

## Widget de Telegram

Ahora que sabes cómo crear un widget e integrarlo en tu sitio web, puedes crear un **botón de Web App en Telegram** que abre tu sitio como una app dentro del mensajero.

{% hint style="info" %}
En lugar de un sitio web completo, puedes crear una página de aterrizaje con una sola sección que incluya el widget de reserva en línea y compartirla con tus clientes como un botón de Telegram usando el botón de Web App.
{% endhint %}

**Paso 1. Creación del bloque**

Crea un bloque en el constructor de chatbot.

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

{% hint style="success" %}
¡Nota!

No olvides guardar la configuración del bloque.
{% endhint %}

**Paso 2. Crear un botón de WebApp**

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

A continuación, en la ventana modal que se abre, introduce el texto del botón y elige el tipo “WebApp”.

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

Luego selecciona el sitio web que creaste en MaviBot.

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

Si tu sitio web no fue creado en MaviBot, selecciona la pestaña “Especificar un enlace externo” e introduce la URL de tu propio sitio web.

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

Entonces el botón de Web App con el widget de reserva en línea estará disponible en el 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/es/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.
