Use this method to set a custom title for an administrator in a supergroup promoted by the bot
Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.
Body
Required
-
Unique identifier of the target user
-
New custom title for the administrator; 0-16 characters, emoji are not allowed
POST
/setChatAdministratorCustomTitle
curl \
-X POST https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/setChatAdministratorCustomTitle \
-H "Content-Type: application/json" \
-d '{"chat_id":42,"user_id":42,"custom_title":"string"}'
Request example
{
"chat_id": 42,
"user_id": 42,
"custom_title": "string"
}
Request examples
{
"chat_id": 42,
"user_id": 42,
"custom_title": "string"
}
Response examples (default)
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
Response examples (default)
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
Response examples (200)
{
"ok": true,
"result": true
}
Response examples (200)
{
"ok": true,
"result": true
}