* The list to which the chat belongs was changed. This update is guaranteed to be sent only when chat.order == 0 and the current or the new chat list is null.
13
*/
14
class UpdateChatChatList extends Update
15
{
16
public const TYPE_NAME = 'updateChatChatList';
17
18
/**
19
* Chat identifier.
20
*
21
* @var int
22
*/
23
protected int $chatId;
24
25
/**
26
* The new chat's chat list; may be null.
27
*
28
* @var ChatList|null
29
*/
30
protected ?ChatList $chatList;
31
32
public function __construct(int $chatId, ?ChatList $chatList)
33
{
34
parent::__construct();
35
36
$this->chatId = $chatId;
37
$this->chatList = $chatList;
38
}
39
40
public static function fromArray(array $array): UpdateChatChatList