mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-04-04 09:14:13 +03:00
parent
2052b502c8
commit
417bfcd36e
|
@ -54,7 +54,7 @@ class QRLogin:
|
|||
|
||||
The URL simply consists of `token` base64-encoded.
|
||||
"""
|
||||
return 'tg://login?token={}'.format(base64.b64encode(self._resp.token).decode('utf-8'))
|
||||
return 'tg://login?token={}'.format(base64.urlsafe_b64encode(self._resp.token).decode('utf-8').rstrip('='))
|
||||
|
||||
@property
|
||||
def expires(self) -> datetime.datetime:
|
||||
|
|
Loading…
Reference in New Issue
Block a user