check_password()#

Client.check_password()[source]#

Check your Two-Step Verification password and log in.

Usable by Users Bots
Parameters:

password (str) – Your Two-Step Verification password.

Returns:

User – On success, the authorized user is returned.

Raises:
  • BadRequest – In case the password is invalid.

  • RPCError – In case of a Telegram RPC error.