BotBuilder-MicrosoftTeams icon indicating copy to clipboard operation
BotBuilder-MicrosoftTeams copied to clipboard

Can't @mention a Team or Channel

Open theDL opened this issue 6 years ago • 21 comments

When sending an Activity into a Channel, you can @mention a single user, but you cannot do the same for a Team or Channel. This would be very helpful functionality for starting conversations that should be seen by an entire team.

For mentioning a user (using C#), it's as simple as this:
// there is a ChannelAccount object with the correct ID called userAccount activity.AddMentionToText(userAccount, MentionTextLocation.PrependText, "Firstname Lastname");

Ideally, it would be just as simple to mention a team, like this:
activity.AddMentionToText(teamAccount, MentionTextLocation.PrependText, "Team Name");

theDL avatar Jul 11 '18 15:07 theDL

We actually have this working but haven't turned it on because doing so opens up potential for abuse which we haven't yet implemented the ability to detect or prevent. I'm investigating ways to turn this on without necessarily having to do that, but we don't have an ETA.

Note: Adding answer from stack overflow response.

arun-msft-zz avatar Jul 16 '18 10:07 arun-msft-zz

Lol that was me asking the question on stack overflow, thanks for the response here as well.

theDL avatar Jul 16 '18 20:07 theDL

Any news concerning this issue and the timeline it would be fixed ? This is a feature I would like to use for notifying a team of "human" users when my bot cannot answers a question so that a human can take over the conversation. Many thanks!

rebelanger avatar Oct 24 '18 14:10 rebelanger

@rebelanger - We don't have ETA for this yet.

Wajeed-msft avatar Nov 09 '18 12:11 Wajeed-msft

Any news on this please? Was it marked as closed because it is fixed now? I am still unable to @ mention the team and channel

andylwelch avatar Feb 20 '19 03:02 andylwelch

It should not have been closed. It still has not yet been implemented.

billbliss avatar Feb 20 '19 04:02 billbliss

The only way that I have ever seen this work is if you use a HeroCard with an ImBack button - for whatever reason, when someone clicks on the button in a Teams channel, it includes an @mention at the bot.

ericrrichards avatar Apr 23 '19 19:04 ericrrichards

Is there any update on this?

Sfonxs avatar Jun 20 '19 12:06 Sfonxs

Checking for any updates or ETA on this

pkpio avatar Aug 16 '19 21:08 pkpio

Also wondering if there's an update on this?

ReeceKenney avatar Sep 04 '19 10:09 ReeceKenney

Any update?

idiotleon avatar Oct 17 '19 22:10 idiotleon

Any update on this?

AngryVirginian avatar Feb 08 '20 03:02 AngryVirginian

Any update on this?

ahmetkocadogan avatar Feb 11 '20 08:02 ahmetkocadogan

@Wajeed-msft @arun-msft-zz Hi guys, any update or ETA on this feature?, it would be perfect for something I'm working on, mentioning 2k users individually doesn't seem good to me :/

crammag avatar Apr 20 '20 07:04 crammag

Any update on this? I'd like to be able to mention a team or a channel without having to mention each individual member

NedkoChulev avatar May 18 '20 22:05 NedkoChulev

API should be able to @mention users by tag as well.

sakno avatar Aug 28 '20 07:08 sakno

Allowing the bot to mention a tag will improve quite a few workflows for on-call staff++.

I understand tags might not be available in all channels, but for the teams work it is very useful.

Ulriksen avatar Oct 08 '21 07:10 Ulriksen

Any updates on this?

chriscarnduff avatar Dec 01 '21 04:12 chriscarnduff

news?

jacksbox avatar Dec 02 '21 15:12 jacksbox

Would be a useful feature we are missing out on right now. (Also see deeplinking: https://github.com/MicrosoftDocs/msteams-docs/issues/5255)

JordyGit avatar Feb 21 '22 07:02 JordyGit

4 years later????

davhdavh avatar May 13 '22 08:05 davhdavh