kickChatMember

Kick a member from a chat. Same as a banChatMember call followed by unbanChatMember.

Parameters

chatId: ID

The identifier of the chat. Must be a supergroup.

memberId: ID

The identifier of the member.

Result

void

Syntax

await client.kickChatMember(chatId, memberId);