# Запрос номера телефона

{% hint style="info" %}
Это работает в Telegram и Viber.
{% endhint %}

При создании кнопки вам нужно выбрать **«Запросить номер телефона».**

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

При нажатии на кнопку откроется окно с запросом на подтверждение передачи номера:

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

Если клиент одобрит запрос номера телефона, его номер будет отправлен боту как стандартное сообщение.

{% hint style="success" %}
Номер телефона будет автоматически сохранён в переменной `phone`.
{% endhint %}

## Как создать кнопку «Позвонить»

{% hint style="info" %}
В настоящее время это работает только в Facebook.
{% endhint %}

1. При создании кнопки выберите **«Позвонить (только Facebook)»** функцию из списка.
2. Заполните все необходимые поля, которые появятся.

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


---

# 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/ru/chatbot/builder/knopki/phone.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.
