I'm trying to create bot in python with referral feature but I didn't get any method to create referral links for user in telegram docs. can you suggest any alternative approach for it. so that we can create a link and any new member can follow that link to start bot and referral got registered in referrers account.
Asked
Active
Viewed 3,229 times
2 Answers
2
You can use the Deep Linking feature which allows you to add a custom parameter for your convenience
https://t.me/my_telegram_bot?start=ref01
The user will be sent to the Bot and, after clicking on Start, the value ref01
is passed to the start command handler.

Beppe C
- 11,256
- 2
- 19
- 41
-
Thanks Beppe, I tried this method but as you said that it just pass parameters as a update query and from there we can set conditions and manipulate incoming update to store there referral link (ref01). And it's satisfied all my needs but I need to create additional database to store referrals links or referer , refree sets. – VIJAY May 09 '21 at 16:02
0
Try to use some redirect method in your webserver code.
- Generate the referral link and save in some storage
- When user open the link, after check method redirect to bot

Sargis Kazaryan
- 36
- 3