* Adds multiple new members to a chat. Currently this option is only available for supergroups and channels. This option can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Members will not be added until the chat state has been synchronized with the server.
13
*/
14
class AddChatMembers extends TdFunction
15
{
16
public const TYPE_NAME = 'addChatMembers';
17
18
/**
19
* Chat identifier.
20
*/
21
protected int $chatId;
22
23
/**
24
* Identifiers of the users to be added to the chat.
25
*
26
* @var int[]
27
*/
28
protected array $userIds;
29
30
public function __construct(int $chatId, array $userIds)
31
{
32
$this->chatId = $chatId;
33
$this->userIds = $userIds;
34
}
35
36
public static function fromArray(array $array): AddChatMembers