S
S
Slanty2019-07-27 19:35:33
Python
Slanty, 2019-07-27 19:35:33

How to implement a referral system in a Telegram bot?

There is a bot in the telegram, how to make a referral system?
For example: The
bot generates a referral link ( t.me/<bot name>?start=referral id ), a person follows it and becomes a referral of the link owner.
For the bot I use the Telebot module

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2019-07-28
@Slanty

How to implement a referral system in a Telegram bot?

Here I wanted to see what the difficulty arose? Again you have to guess.
Read the documentation carefully to get started.
https://core.telegram.org/bots#deep-linking
Telegram bots have a deep linking mechanism that allows for passing additional parameters to the bot on startup. It could be a command that launches the bot — or an auth token to connect the user's Telegram account to their account on some external service.
Each bot has a link that opens a conversation with it in Telegram - https://telegram.me/. You can add the parameters start or startgroup to this link, with values ​​up to 64 characters long. For example:
Next look in the examples:
deep_linking.py

F
foodfor, 2022-03-26
@foodfor

@tggrowbot, though for channels it’s only suitable
, you can set up automatic issuance of invite links to the channel (via a bot), then upload all the data to Excel (whose link, how much, who and when subscribed to it)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question