Commit bae89de9 authored by Hermann Krumrey's avatar Hermann Krumrey

Fix decoding issues

parent 7db8122d
......@@ -46,7 +46,7 @@ class TestTelegram(TestCase):
if not os.path.isfile("bokkichat.session"):
with open("bokkichat.session", "w") as f:
content = bytes(os.environ["TELEGRAM_SESSION"], "utf-8")
f.write(b64decode(content))
f.write(b64decode(content).encode("utf-8"))
self.telegram = TelegramConnection(TelegramSettings(
api_id, api_hash, "bokkichat"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment