* Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info rights. The title will not be changed until the request to the server has been completed.
13
*/
14
class SetChatTitle extends TdFunction
15
{
16
public const TYPE_NAME = 'setChatTitle';
17
18
/**
19
* Chat identifier.
20
*/
21
protected int $chatId;
22
23
/**
24
* New title of the chat; 1-128 characters.
25
*/
26
protected string $title;
27
28
public function __construct(int $chatId, string $title)
29
{
30
$this->chatId = $chatId;
31
$this->title = $title;
32
}
33
34
public static function fromArray(array $array): SetChatTitle