IMessagesService.

DeleteMessagesAsync(IReadOnlyList<int>, bool, CancellationToken) Method

Summary

Deletes messages by their IDs.

Syntax

Task<IAffectedMessages> DeleteMessagesAsync(IReadOnlyList<int> ids, bool revoke, CancellationToken cancellationToken = default(CancellationToken))

Parameters

Name Type Description
ids IReadOnlyList<int> Identifiers of messages
revoke bool Delete messages for everyone
cancellationToken CancellationToken Cancellation token

Return Value

Type Description
Task<IAffectedMessages> Returns a IAffectedMessages object containing a affected messages