Adding user mentions in the command header for interactive responses
mszostok opened this issue · comments
Description
When the user clicks a button, then the command is returned, but you don't know who triggered that. In Slack for that reason we append a mention in the command header:
We should the same for Teams. We will need to for each mention added a dedicated entry under entities
:
content.MsTeams.Entities = []MSTeamsEntity{
{
Type: "mention",
Text: "{mention},
Mentioned: Mentioned{
ID: {userID},
Name: {userName},
},
},
}
Note You cannot have addtional entries that are not specified in the text.
Current solution
At present, we include a plain text mention, which may pose an issue only if users share the same names