Answer the question
In order to leave comments, you need to log in
Is it possible to start a telegram bot without pressing the start button?
I have a deeplink for a telegram of this type https://telegram.me/TestBot?start=url
, when I click on the specified link, I request data from the server by url and display them in telegrams, but in order to see them, you need to click on the start button that appears from the bottom.
Essence of the question: Is it possible to display the necessary data in telegrams without pressing the start button?
Answer the question
In order to leave comments, you need to log in
You didn't express yourself clearly, so they can't answer you.
When you display the link https://telegram.me/TestBot?start=url on the site, your site no longer processes it in any way. By clicking on the link, the client gets his telegram client, in which the bot contact with the Start button opens.
After clicking on the Start button, your bot receives the /start url command . Now, you can process the /start command in the bot code and determine whether the second parameter was passed, which contains the desired url.
If the client does not click the Start button, your bot will not receive anything, so you will not even know if the link was clicked at all.
If the client finds your bot with a simple search and clicks Start, then the bot will only receive the command/start without options.
If you need to find out if there was a click on a link in the browser - make a link to the internal php script exemple.ru/redirect_to_tgbot.php?url= 'yourURLthere', which will track the click and make a 302 redirect to https://telegram.me/TestBot ?start=url
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question