Skip to content

setChatAdministratorCustomTitle

Returns boolean

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

Required: chat_id, user_id, custom_title

Limits:

  • custom_title: 0-16 characters
Try it
Token saved
Response

TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("set_chat_administrator_custom_title", {
chat_id: "YOUR_CHAT_ID",
user_id: 0,
custom_title: "..."
})

Parameters

chat_id number | string Required
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).

user_id number Required
Unique identifier of the target user.

custom_title string Required
New custom title for the administrator; 0-16 characters, emoji are not allowed.

setBusinessAccountBio · setBusinessAccountGiftSettings · setBusinessAccountName · setBusinessAccountProfilePhoto · setBusinessAccountUsername · setChatDescription · setChatMemberTag · setChatMenuButton · setChatPermissions · setChatPhoto · setChatStickerSet · setChatTitle · setCustomEmojiStickerSetThumbnail · setGameScore · setMessageReaction · setMyCommands · setMyDefaultAdministratorRights · setMyDescription · setMyName · setMyProfilePhoto · setMyShortDescription · setPassportDataErrors · setStickerEmojiList · setStickerKeywords · setStickerMaskPosition · setStickerPositionInSet · setStickerSetThumbnail · setStickerSetTitle · setUserEmojiStatus · setWebhook