Skip to content

addChatMembers

Sahri Riza Umami edited this page Jun 6, 2018 · 3 revisions

Adds many new members to the chat.
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

addChatMembers(chat_id, user_ids)
Field Type Description
chat_id int53 Chat identifier
user_ids vector Identifiers of the users to add

Example

Invite 111111111, 222222222, and 333333333 into chat 1234567890

addChatMembers(1234567890, {[0] = 111111111, 222222222, 333333333})

Response:

{
  ["@type"] = "ok"
}

Frequently Asked Questions
The Functions

Clone this wiki locally