addChatMembers

Add multiple users at once to a channel or a supergroup.

Parameters

chatId: ID

The identifier of the channel or supergroup to add the users to.

userIds: ID[]

Result

An array of FailedInvitation that has at most a length that is the same as that of the parameter userIds. If empty, it means that all the provided users were added.

Syntax

await client.addChatMembers(chatId, userIds);