Summary
Deletes messages by their IDs.
- Namespace
- OpenTl
.ClientApi .Services .Interfaces - Containing Type
- IMessagesService
Syntax
Task<IAffectedMessages> DeleteMessagesAsync(IReadOnlyList<int> ids, bool revoke, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Name | Type | Description |
---|---|---|
ids | IReadOnlyList |
Identifiers of messages |
revoke | bool | Delete messages for everyone |
cancellationToken | CancellationToken | Cancellation token |
Return Value
Type | Description |
---|---|
Task |
Returns a IAffectedMessages object containing a affected messages |