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;
* Returns information about a supergroup or a channel by its identifier. This is an offline request if the current user is not a bot.
class GetSupergroup extends TdFunction
{
public const TYPE_NAME = 'getSupergroup';
* Supergroup or channel identifier.
*
* @var int
protected int $supergroupId;
public function __construct(int $supergroupId)
$this->supergroupId = $supergroupId;
}
public static function fromArray(array $array): GetSupergroup
return new static(
$array['supergroup_id'],
);
public function typeSerialize(): array
return [
'@type' => static::TYPE_NAME,
'supergroup_id' => $this->supergroupId,
];
public function getSupergroupId(): int
return $this->supergroupId;