mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 21:24:35 +03:00
Fix url property in QRLogin (#1494)
This commit is contained in:
parent
e0c3143763
commit
ba4f4c1f78
|
@ -54,7 +54,7 @@ class QRLogin:
|
|||
|
||||
The URL simply consists of `token` base64-encoded.
|
||||
"""
|
||||
return 'tg://login?token={}'.format(base64.b64encode(self._resp.token))
|
||||
return 'tg://login?token={}'.format(base64.b64encode(self._resp.token).decode('utf-8'))
|
||||
|
||||
@property
|
||||
def expires(self) -> datetime.datetime:
|
||||
|
|
Loading…
Reference in New Issue
Block a user