* The order of the chat in the chat list has changed. Instead of this update updateChatLastMessage, updateChatIsPinned, updateChatDraftMessage, or updateChatIsSponsored might be sent.
13
*/
14
class UpdateChatOrder extends Update
15
{
16
public const TYPE_NAME = 'updateChatOrder';
17
18
/**
19
* Chat identifier.
20
*
21
* @var int
22
*/
23
protected int $chatId;
24
25
/**
26
* New value of the order.
27
*
28
* @var string
29
*/
30
protected string $order;
31
32
public function __construct(int $chatId, string $order)
33
{
34
parent::__construct();
35
36
$this->chatId = $chatId;
37
$this->order = $order;
38
}
39
40
public static function fromArray(array $array): UpdateChatOrder