mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
@@ -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:
|
||||
|
Reference in New Issue
Block a user