for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This phpFile is auto-generated.
*/
declare(strict_types=1);
namespace AurimasNiekis\TdLibSchema;
* Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the client.
class UpdateSecretChat extends Update
{
public const TYPE_NAME = 'updateSecretChat';
* New data about the secret chat.
*
* @var SecretChat
protected SecretChat $secretChat;
public function __construct(SecretChat $secretChat)
parent::__construct();
$this->secretChat = $secretChat;
}
public static function fromArray(array $array): UpdateSecretChat
return new static(
TdSchemaRegistry::fromArray($array['secret_chat']),
);
public function typeSerialize(): array
return [
'@type' => static::TYPE_NAME,
'secret_chat' => $this->secretChat->typeSerialize(),
];
public function getSecretChat(): SecretChat
return $this->secretChat;