Closed li-kai closed 6 months ago
Which Telegram client does that, how do you need to use it in order to get a text link rather than a command, and why don't you just click the command instead?
On the web client, which if you copy+paste, it places a text_link instead. Then, from there, clicks will act as the same, but continue sending text_links.
This must be a bug in the web client. Which one specifically are you talking about, A or K?
This would be K, and this was a bug in the client. I can't seem to reproduce this anymore.
In telegram, you can send
/mycommand@mybot
as plain text, which results in the update:However, if you clicked on or copied it from a previous group chat command, it would be sent as a
text_link
entity:Since
.command
is only triggered by"type": "bot_command"
and not based on the text content, this will fall through toon('msg:text')
handlers.Imo, text_link entities that are
"url": "tg://bot_command
should also be treated as commands. But it is up for debate whether the text or?command=
param should be the source of truth.