User.block()

User.block()

Bound method block of User.

Use as a shortcut for:

client.block_user(123456789)

Example

user.block()
Returns

True on success.

Raises

RPCError – In case of a Telegram RPC error.