Fix url property in QRLogin (#1494)

This commit is contained in:
Tulir Asokan 2020-06-24 15:11:54 +03:00 committed by GitHub
parent e0c3143763
commit ba4f4c1f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: