Chat.unban_member()

Chat.unban_member()

Bound method unban_member of Chat.

Use as a shortcut for:

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

Example

await chat.unban_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).

Returns:

bool – True on success.

Raises:

RPCError – In case of a Telegram RPC error.