Answer the question
In order to leave comments, you need to log in
Referral system in the VK bot, through the parameters of the link vk.me, how to implement the method of clicking on the link?
There are some VK bots that have a ref system with ref and ref_source parameters.
How can this be implemented in my own, because my knowledge is not enough, I tried a lot, and did not find anything significant.
Is there any instructions, examples, commands themselves)))
Answer the question
In order to leave comments, you need to log in
Everything is pretty simple. If the user follows such a link and writes something to the bot, then in the message object, in addition to other parameters (id, date, etc.), ref and ref_source will also be returned. You can read more about the message object here . You can learn more about passing parameters using vk.me here
Are VK bots able to intercept values from the address bar? I am not familiar with their api, but I believe that it is possible to go simpler - let the inviter write a link to the friend's page to the bot. After that, when his friend wrote to the bot, he asks "Are you invited by Vasya Pupkin?" and he agrees or rejects.
Or vice versa, if the invitee is more motivated, then ask him for a link to the one who invited him, promise goodies and, if matches are found in the database, then give a gift "thank you".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question