Summary
Deletes communication history.
Syntax
Task<IAffectedHistory> DeleteHistoryAsync(IInputPeer peer, int maxId, bool justClear, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Name |
Type |
Description |
peer |
IInputPeer |
User or chat, communication history of which will be deleted |
maxId |
int |
If a positive value was transferred, the method will return only messages with IDs less than the
set one
|
justClear |
bool |
Delete as non-recoverable or just clear the history |
cancellationToken |
CancellationToken |
Cancellation token |
Return Value
Type |
Description |
Task<IAffectedHistory> |
Returns a IAffectedHistory object containing a affected history |