How to make a Telegram referral bot (invite links, counts and rewards)
· 5 min read
Word of mouth is the cheapest way to grow a Telegram bot or channel. A referral bot gives every user their own invite link, counts each new person who arrives through it and rewards the inviter. This guide shows how to set one up in a few minutes, on any plan.
How referral links work
Each user gets a link such as t.me/yourbot?start=ref_123. When someone opens it and starts your bot for the first time, the bot credits the person who shared it.
A friend counts only once. Opening your own link does not count, and neither does a link opened by someone who already used the bot, so invite counts cannot be inflated by tapping the same link again.
Build it
Start from the Referral program template, or set it up by hand:
- Create a bot and paste your BotFather token.
- In the Referrals panel tick Count invites. Every user now has
{{user.referral_link}}and{{user.referrals}}. - Add an /invite command or an "Invite friends" button with a message such as
Your link: {{user.referral_link}}. Friends invited: {{user.referrals}}. - Add a user number variable called
points, pick it as the Reward variable and set Add per invite, for example 10. - Optionally write a Tell the inviter message:
{{user.first_name}} joined with your link. You have invited {{inviter.referrals}} people. - Test in the Test tab, then publish.
Turn points into rewards
Points are an ordinary variable, so the rest of the editor can use them. A Condition step on {{vars.points}} can unlock a bonus menu, a discount code or premium content once a user reaches a target.
Pair referrals with a Channel gate step to make new users join your channel before they continue. Every invite then grows both the bot and the channel.
See who brings the most people
The Invited column in Audience → Users shows how many people each user brought, so you can thank or reward your top inviters.
Frequently asked questions
Is the referral feature free?
Yes. Referrals work on every plan, including Free.
Can someone cheat by opening their own link?
No. Self-referrals and users who already started the bot are never counted, and each user can be referred only once.
Is there a public leaderboard?
Not yet. The Invited column in Audience shows the top inviters to you as the owner.