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;
* Returns information about a user by their identifier. This is an offline request if the current user is not a bot.
class GetUser extends TdFunction
{
public const TYPE_NAME = 'getUser';
* User identifier.
protected int $userId;
public function __construct(int $userId)
$this->userId = $userId;
}
public static function fromArray(array $array): GetUser
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;