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;
* Accepts Telegram terms of services.
class AcceptTermsOfService extends TdFunction
{
public const TYPE_NAME = 'acceptTermsOfService';
* Terms of service identifier.
*
* @var string
protected string $termsOfServiceId;
public function __construct(string $termsOfServiceId)
$this->termsOfServiceId = $termsOfServiceId;
}
public static function fromArray(array $array): AcceptTermsOfService
return new static(
$array['terms_of_service_id'],
);
public function typeSerialize(): array
return [
'@type' => static::TYPE_NAME,
'terms_of_service_id' => $this->termsOfServiceId,
];
public function getTermsOfServiceId(): string
return $this->termsOfServiceId;