Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding user mentions in the command header for interactive responses #1331

Open
mszostok opened this issue Dec 12, 2023 · 0 comments
Open

Adding user mentions in the command header for interactive responses #1331

mszostok opened this issue Dec 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mszostok
Copy link
Contributor

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:
284551507-c6efd885-a333-4d83-86ef-1dc084d5cb76

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.

More info: https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cdesktop%2Cconnector-html#mention-support-within-adaptive-cards

Current solution

At present, we include a plain text mention, which may pose an issue only if users share the same names

@mszostok mszostok added the enhancement New feature or request label Dec 12, 2023
@mszostok mszostok added this to Botkube Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant