# Request geolocation button

{% hint style="info" %}
It works in Telegram and Viber.
{% endhint %}

Select the **"Request geolocation"** function to create a button that asks the user to share their location.

<figure><img src="/files/qXZFwaoKmivRS6011oyC" alt=""><figcaption></figcaption></figure>

When a client approves the location request, their geographic coordinates (latitude and longitude) are sent to the bot in a message.

{% hint style="success" %}
The longitude and latitude will be automatically saved in the variables `longitude` and `latitude`.
{% 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/chatbot/builder/buttons/request-geolocation-button.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.
