MessageActivity.TextWithoutMentions Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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