for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace unreal4u\TelegramAPI\Telegram\Methods;
use Psr\Log\LoggerInterface;
use unreal4u\TelegramAPI\Abstracts\TelegramMethods;
use unreal4u\TelegramAPI\Abstracts\TelegramTypes;
use unreal4u\TelegramAPI\InternalFunctionality\TelegramResponse;
use unreal4u\TelegramAPI\Telegram\Types\Custom\ResultBoolean;
/**
* Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on
* success.
*
* Objects defined as-is June 2020, Bot API v4.9
* @see https://core.telegram.org/bots/api#setchatdescription
*/
class SetChatAdministratorCustomTitle extends TelegramMethods
{
* Unique identifier for the target chat or username of the target supergroup or channel (in the format
* @var string
public $chat_id = '';
* Unique identifier of the target user
* @var int
public $user_id = 0;
* New custom title for the administrator; 0-16 characters, emoji are not allowed
public $custom_title;
public static function bindToObject(TelegramResponse $data, LoggerInterface $logger): TelegramTypes
return new ResultBoolean($data->getResultBoolean(), $logger);
}
public function getMandatoryFields(): array
return [
'chat_id',
'user_id',
'custom_title',
];