I'm trying to identify each user by some unique key, which is added to /start
command. For each user, I will generate some key, and show URL to the user. This is described step by step in the official documentation https://core.telegram.org/bots#deep-linking
Link for the users is in the format:
https://telegram.me/ExampleBot?start=uniqueKey
It works perfectly in the telegram app. The probem is, that when opened in the browser, only button "Start" is visible. When the user clicks, the uniqueKey
is not send to the bot.
How to add a uniqueKey to /start command to make it work in telegram web app too? How should look like the generated URL? So user can just click, and does not need to write the code?
Make your uniqueKey
as Base64
and test again...
Based on Telegram documents it is recommended to using base64url to encode parameters with binary and other types of content.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With