IMessagesService.

ReceivedMessagesAsync(int, CancellationToken) Method

Summary

Confirms that a client has received messages and cancels push notifications

Syntax

Task<IReadOnlyList<IReceivedNotifyMessage>> ReceivedMessagesAsync(int maxId, CancellationToken cancellationToken = default(CancellationToken))

Parameters

Name Type Description
maxId int Maximum message ID available in a client.
cancellationToken CancellationToken Cancellation token

Return Value

Type Description
Task<IReadOnlyList<IReceivedNotifyMessage>> Notifications