Chat.promote_member()#

Chat.promote_member()#

Bound method promote_member of Chat.

Use as a shortcut for:

await client.promote_chat_member(
    chat_id=chat_id,
    user_id=user_id
)

Example

await chat.promote_member(123456789)
Parameters:
  • user_id (int | str) – Unique identifier (int) or username (str) of the target user. For a contact that exists in your Telegram address book you can use his phone number (str).

  • privileges (ChatPrivileges, optional) – New user privileges.

Returns:

bool – True on success.

Raises:

RPCError – In case of a Telegram RPC error.