# Кнопка запиту геолокації

{% hint style="info" %}
Це працює в Telegram і Viber.
{% endhint %}

Виберіть **"Запит геолокації"** функція для створення кнопки, яка просить користувача надати своє місцезнаходження.

<figure><img src="/files/03401eb87b042d6c6f58a48bfaab465409675087" alt=""><figcaption></figcaption></figure>

Коли клієнт схвалює запит на місцезнаходження, його географічні координати (широта й довгота) надсилаються боту в повідомленні.

{% hint style="success" %}
Довгота та широта автоматично зберігатимуться в змінних `довгота` та `широта`.
{% endhint %}


---

# 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/uk/chatbot/builder/knopki/knopka-zapitu-geolokaciyi.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.
