ChatJoinRequest.decline()

async ChatJoinRequest.decline()[source]

Bound method decline of ChatJoinRequest.

Use as a shortcut for:

await client.decline_chat_join_request(
    chat_id=request.chat.id, user_id=request.from_user.id
)

Example

await request.decline()
Returns:

bool – True on success.

Raises:

RPCError – In case of a Telegram RPC error.