Skip to content

addChatMembers

Sahri Riza Umami edited this page Dec 8, 2016 · 3 revisions

Adds many new members to the chat.

addChatMembers(chat_id, user_ids)

Currently, available only for channels.
Can't be used to join the channel.
Member will not be added until chat state will be synchronized with the server.
Member will not be added if application is killed before it can send request to the server.

Option Description
chat_id Chat identifier.
user_ids Identifiers of the users to add.

Example

Invite 11111111, 22222222, and 33333333 to chat 1234567890.

addChatMembers(1234567890, {[0] = 11111111, 22222222, 33333333})

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally