Forum Discussion
Jon_Monks
Aug 31, 2021Copper Contributor
Changing the "Posted a new message" notification
We have recently written some code that sends an adaptive card through to Teams. When the adaptive card arrives at Teams, a desktop notification shows stating "ChatUser posted a new message". ...
Prasad_Das-MSFT
Microsoft
Sep 07, 2021Jon_Monks
The default notification can be changed by adding summary to the code as below:
var response = MessageFactory.Text(string.Empty);
response.Attachments.Add(cardAttachment);
response.Summary = "Here goes your desired text";
await turnContext.SendActivityAsync(response, cancellationToken);
Thanks,
Prasad Das
------------------------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.