sign_in_qrcode()¶
- Client.sign_in_qrcode()¶
Authorize a user in Telegram with a QR code.
Usable by Users Bots
- Returns:¶
User
|pyrogram.types.LoginToken
, in case the authorization completed, the user is returned. In case the QR code is not scanned, a login token is returned.- Raises:¶
ImportError – In case the qrcode library is not installed.
SessionPasswordNeeded – In case a password is needed to sign in.