peyk.platforms.telegram.methods.set_chat_administrator_custom_title

async peyk.platforms.telegram.methods.set_chat_administrator_custom_title(self, chat_id: int | str, user_id: int, custom_title: str) bool[source]

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

Parameters:
  • chat_id – Unique identifier for the target chat or username of the target supergroup in the format @username

  • user_id – Unique identifier of the target user

  • custom_title – New custom title for the administrator; 0-16 characters, emoji are not allowed

Returns:

Result returned by Telegram on successful execution.

Return type:

bool