Skip to content

Bot framework does not support MS Teams importance flag #6700

@Yaroslav-Andrieiev-Net

Description

@Yaroslav-Andrieiev-Net

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 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or an unintended behavior.needs-triageThe issue has just been created and it has not been reviewed by the team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions