Restore messages

Restore() recovers soft-deleted messages and their attached files. Hard-deleted messages cannot be restored.

Requires Message Persistence

Enable Message Persistence and Enable Delete-From-History in the Admin Portal.

Method signature​

This method has the following signature:

1message.Restore()

Input​

This method doesn't take any parameters.

Output​

TypeDescription
Task<ChatOperationResult>Returned Task that you can await to get the result of the restore operation.

Sample code​

Restore a previously soft deleted message with the 16200000000000001 timetoken.

1

Was this page useful?

Last updated on