User.block()

User.block()[source]

Bound method block of User.

Use as a shortcut for:

await client.block_user(123456789)

Example

await user.block()
Returns:

True on success.

Raises:

RPCError – In case of a Telegram RPC error.