On this page

Quoted messages

Quote previous messages to provide context when responding to older messages in a conversation.

Quote message

Use sendText() with the quotedMessage parameter to quote a message. This is the same method used for sending text messages.

Method signature

Head over to the sendText() method section for details.

Sample code

Sample code

The code samples in Swift Chat SDK focus on asynchronous code execution.

You can also write synchronous code as the parameters are shared between the async and sync methods but we don't provide usage examples of such.

Quote the message with the 16200000000000001 timetoken.

1

Get quoted message

quotedMessage returns the original quoted message.

Sample code

Sample code

The code samples in Swift Chat SDK focus on asynchronous code execution.

You can also write synchronous code as the parameters are shared between the async and sync methods but we don't provide usage examples of such.

Return a quote from the message with the 16200000000000001 timetoken.

1

quotedMessage returns only values for the timetoken, text, and userId parameters. To get the full quoted Message object, use the getMessage() method with the timetoken from quotedMessage.

Last updated on