> For the complete documentation index, see [llms.txt](https://tgtaps.gitbook.io/tgtaps-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tgtaps.gitbook.io/tgtaps-docs/blocks/friends-referral-system/invite-friend-button.md).

# Invite friend button

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

<figure><img src="https://923504530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4Ussb0ib5NljSmRt4570%2Fuploads%2FVd2YKiRbsvUfYoAZqzba%2Fimage.png?alt=media&amp;token=ecc82346-4238-418c-9761-a4698e313d3f" 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="https://923504530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4Ussb0ib5NljSmRt4570%2Fuploads%2FJFE9XLf39d5BUbKtoRhD%2Fimage.png?alt=media&amp;token=9de684ad-2014-45a3-a62f-f9708d75948f" 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.
