skip to Main Content

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.

2

Answers


  1. Try to use some redirect method in your webserver code.

    1. Generate the referral link and save in some storage
    2. When user open the link, after check method redirect to bot
    Login or Signup to reply.
  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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search