How can I mention Telegram users without a username?
According to official documentation it is possible to mention user by its numerical id with markup:
Markdown style
To use this mode, pass Markdown in the
parse_mode
field when usingsendMessage
. Use the following syntax in your message:
[inline mention of a user](tg://user?id=123456789)
and you can also use HTML
style :
HTML style
To use this mode, pass HTML in the parse_mode field when using sendMessage. The following tags are currently supported:
<a href="tg://user?id=123456789">inline mention of a user</a>