* Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info rights. The photo will not be changed before request to the server has been completed.
13
*/
14
class SetChatPhoto extends TdFunction
15
{
16
public const TYPE_NAME = 'setChatPhoto';
17
18
/**
19
* Chat identifier.
20
*
21
* @var int
22
*/
23
protected int $chatId;
24
25
/**
26
* New chat photo. You can use a zero InputFileId to delete the chat photo. Files that are accessible only by HTTP URL are not acceptable.
27
*
28
* @var InputFile
29
*/
30
protected InputFile $photo;
31
32
public function __construct(int $chatId, InputFile $photo)
33
{
34
$this->chatId = $chatId;
35
$this->photo = $photo;
36
}
37
38
public static function fromArray(array $array): SetChatPhoto