for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace TgBotApi\BotApiBase\Method;
use TgBotApi\BotApiBase\Method\Interfaces\SetMethodAliasInterface;
use TgBotApi\BotApiBase\Method\Traits\ChatIdVariableTrait;
use TgBotApi\BotApiBase\Method\Traits\UserIdVariableTrait;
/**
* Use this method to set a custom title
* for an administrator in a supergroup promoted by the bot. Returns True on success.
*
* @see https://core.telegram.org/bots/api#setchatadministratorcustomtitle
*/
class SetChatAdministratorCustomTitleMethod implements SetMethodAliasInterface
{
use ChatIdVariableTrait;
use UserIdVariableTrait;
* @var string
public $customTitle;
* @param int|string $chatId
public static function create($chatId, int $userId, string $title): SetChatAdministratorCustomTitleMethod
$instance = new static();
$instance->chatId = $chatId;
$instance->userId = $userId;
$instance->customTitle = $title;
return $instance;
}