I am working on an telegram bot, and looking for the exact URL schema to popup the "Share / Select Group / Send to" dialogue in the telegram client.
I have seen this link in @pollbot, for which I took following screenshots.
A bit more details:
- What I want is to give end-user an easy way to add the bot to their group, just like what PollBot does: When a poll being created, PollBot will return a special like to the user. Any by clicking that link, the user could easily add PollBot to a group. So I'm looking for the exact URL schema of that link.
- I then check that link PollBot sent to me in telegram web client, and found out it's a
tg
protocol url:tg://resolve?domain=PollBot&startgroup=5148bed5f90678b93246464b3e132052
. So I tried to resend this url via bot.sendMessage. But it turned out Telegram api server won't parse thetg://resolve
url. - So, how could the bot manage to send such a link to the user?