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 PHPTdGram\Schema;
* Creates a new secret chat. Returns the newly created chat.
class CreateNewSecretChat extends TdFunction
{
public const TYPE_NAME = 'createNewSecretChat';
* Identifier of the target user.
protected int $userId;
public function __construct(int $userId)
$this->userId = $userId;
}
public static function fromArray(array $array): CreateNewSecretChat
return new static(
$array['user_id'],
);
public function typeSerialize(): array
return [
'@type' => static::TYPE_NAME,
'user_id' => $this->userId,
];
public function getUserId(): int
return $this->userId;