Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.

see
package Default

 Methods

create()

create(integer|string $chatId, \TgBotApi\BotApiBase\Method\int $userId, \TgBotApi\BotApiBase\Method\string $title) 
Static

Parameters

$chatId

integerstring

$userId

$title

 Properties

 

Unique identifier for the target chat or username of the target channel (in the format @channelusername).

$chatId : integer | string

Default

 

$customTitle

$customTitle : string

Default

 

Unique identifier of the target user.

$userId : integer

Default