IMessagesService.

DeleteChatUser(int, IInputUser, CancellationToken) Method

Summary

Deletes a user from a chat and sends a service message on it.

Syntax

Task<IUpdates> DeleteChatUser(int chatId, IInputUser user, CancellationToken cancellationToken = default(CancellationToken))

Parameters

Name Type Description
chatId int Chat's identifier
user IInputUser User ID to be deleted
cancellationToken CancellationToken Cancellation token

Return Value

Type Description
Task<IUpdates> Returns a IUpdates object containing a service message sent during the action.