Language

MessageActivity.TextWithoutMentions Property

Definition

Gets the message text with the bot (recipient) @mention removed and trimmed. In group chats, Teams prepends "<at>botname</at>" to the text when the bot is mentioned. This property strips that mention so handlers can match on the user's intent alone.

[System.Text.Json.Serialization.JsonIgnore]
public string? TextWithoutMentions { get; }
[<System.Text.Json.Serialization.JsonIgnore>]
member this.TextWithoutMentions : string
Public ReadOnly Property TextWithoutMentions As String

Property Value

Attributes

Applies to