Closed Behruz999 closed 1 month ago
In tgbot, you can use markdownv2 to mention user. But I believe you may need to extend the sendMessage function to mention user (https://core.telegram.org/bots/api#markdown-style).
UPDATE: I think you can call sendMessage(id, message, { parse_mode: 'MarkdownV2' })
to tag user, just use markdown link and user id [inline mention of a user](tg://user?id=123456789)
. You can use HTML <a href="tg://user?id=123456789">inline mention of a user</a>
to tag user either.
Hi everyone, I got a lack of insight about mentioning users by it's @username, my code's:
it's a mention by user id, I've read docs too however I coudn't figure out what i need to do to reach my purpose. I typically use NODEJS + EXPRESS