botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Bot framework does not support MS Teams importance flag

Open Yaroslav-Andrieiev-Net opened this issue 5 months ago • 0 comments

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Version

4.22.7

Describe the bug

Hi, we have faced an issue, when the user sends an message to MS Teams with importance flag webhook to messaging endpoint does not contain this information. Could someone assist with it? Is it expected behaviour?

To Reproduce

Steps to reproduce the behavior:

  1. Create chat in MS Teams
  2. Add bot to the chat
  3. Send message with importance flag "high"

Expected behavior

Received ITurnContext<IMessageActivity> turnContext in OnMessageActivityAsync turnContext.Activity.Importance is not null

Screenshots

Image Image

Additional context

We receive such a payload from Azure Bot Service which does not contain importance flag at all { "text": "wqweqweqweqweq important\r\n ", "textFormat": "plain", "attachments": [ { "contentType": "text/html", "content": "<p>wqweqweqweqweq important</p>\r\n<p>&nbsp;</p>" } ], "type": "message", "timestamp": "2025-09-01T09:31:06.0252882Z", "localTimestamp": "2025-09-01T11:31:06.0252882+02:00", "id": "1756719066008", "channelId": "msteams", "serviceUrl": "https://smba.trafficmanager.net/emea/some-id/", "from": { "id": "some id", "name": "Yaroslav Andrieiev", "aadObjectId": "some id" }, "conversation": { "isGroup": true, "conversationType": "groupChat", "tenantId": "some tenant id", "id": "some id" }, "recipient": { "id": "some id", "name": "Cirro dev " }, "entities": [ { "locale": "en-US", "country": "US", "platform": "Web", "timezone": "some timezone", "type": "clientInfo" } ], "channelData": { "tenant": { "id": "some id" } }, "locale": "en-US", "localTimezone": "some timezone" }

Tracking Status

Dotnet SDK TODO

  • [ ] PR
  • [ ] Merged

Javascript SDK TODO

  • [ ] PR
  • [ ] Merged

Python SDK TODO

  • [ ] PR
  • [ ] Merged

Java SDK TODO

  • [ ] PR
  • [ ] Merged

Samples TODO

  • [ ] PR
  • [ ] Merged

Docs TODO

  • [ ] PR
  • [ ] Merged

Tools TODO

  • [ ] PR
  • [ ] Merged

Yaroslav-Andrieiev-Net avatar Sep 01 '25 09:09 Yaroslav-Andrieiev-Net