setChatAdministratorCustomTitle

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

Arguments
Name Type Description Required
custom_title string | array New custom title for the administrator; 0-16 characters, emoji are not allowed yes
chat_id int | string | null Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername) no
user_id int | null Unique identifier of the target user no
token string | null You can use this method on another bot with specify this parameter no
forgot bool | null You can set to not receive request result, dont set it or pass null for turn it off no
answer bool | null You can set to answer to webhook, dont set it or pass null for turn it off no

Output : bool | BPT\types\responseError

Static or normal : Static

Examples :

request::setChatAdministratorCustomTitle(custom_title: string, chat_id: int | string | null, user_id: int | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);
request::setChatAdministratorCustomTitle(['custom_title' => string, 'chat_id' => int | string | null, 'user_id' => int | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);
request::setChatAdministratorCustomTitle(custom_title: string);
request::setChatAdministratorCustomTitle(['custom_title' => string]);