# Invite friend button

Invite friends button block opens Telegram with the referral link to send:

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

The button contains text which will be instead in the message. After the text will be inserted, referral code also added to the message:

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

When the user follows a link and opens an app, this user tracked as referral and become visible in [friends list](/tgtaps-docs/blocks/friends-referral-system/friends-list.md) and [leaderboard](/tgtaps-docs/blocks/friends-referral-system/leaderboard.md).

Also, the bonus is sent to the inviter. How to configure the bonus you can [learn here](/tgtaps-docs/mini-app-settings/referral-system.md).

***

Something unclear in docs or you know how to improve article? [Message us in community!](https://docs.tgtaps.com/tgtaps-docs/readme/community)\
We will answer you and then promise to improve the article within 3 days.


---

# 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://tgtaps.gitbook.io/tgtaps-docs/blocks/friends-referral-system/invite-friend-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.
