Search code examples
botframeworkmicrosoft-teams

@mention a user in Ms bot with in MS teams


I have a bot built using ms bot v3 nodejs sdk. I add this bot in my MS team by using deep link for 1:1 conversation which looks like as follows

https://teams.microsoft.com/l/chat/0/0?users=28:{BotID}

I would like to add @mentioning users capability to this bot and I was trying to see if I can get some examples on how to it ?

Not sure if side loading bot as an app will allow it.


Solution

  • Bots and users can only at-mention members of the same conversation.

    • In a channel, you can mention any user in the team
    • In a 1:1 chat, you can at-mention the other user
    • In a group chat, you can mention any user in the chat

    Right now neither bots nor users can at-mention arbitrary users who are not members of the conversation.

    Your example above, "Hello @PersonB and @PersonC please take care of this ticket", can work if PersonB and PersonC are part of the team (if this in channel), or the group chat, but not in a 1:1 chat with the bot.

    The deeplink in your question creates a 1:1 chat w/ the bot, so no other users could be at-mentioned :(