Quoted messages
Quote previous messages to provide context when responding to older messages in a conversation.
Quote message
Set the QuotedMessage property on a MessageDraft before sending it. The quoted message metadata (timetoken, text, and user ID) is automatically included when the draft is published.
Method signature
Head over to the MessageDraft documentation for details.
Sample code
Quote a message with the 16200000000000001 timetoken.
1
Get quoted message
GetQuotedMessage() returns the original quoted message.
Method signature
This method has the following signature:
1message.GetQuotedMessage()
Input
This method doesn't take any parameters.
Output
| Type | Description |
|---|---|
Task<ChatOperationResult<Message>> | An awaitable Task with the Message object if a quote exists, otherwise the Error property on the result will be true. |
Sample code
Return a quote from the message with the 16200000000000001 timetoken.
1