From 5b80fb7c5b63714b75d4405dd7dc4ba661c93432 Mon Sep 17 00:00:00 2001 From: Dan Elkouby Date: Sat, 5 May 2018 14:48:58 +0300 Subject: [PATCH] Fix missing _loop in newer Telethon --- uniborg/uniborg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/uniborg/uniborg.py b/uniborg/uniborg.py index 0d3a2d7..4afbfb8 100644 --- a/uniborg/uniborg.py +++ b/uniborg/uniborg.py @@ -39,6 +39,7 @@ class Uniborg(TelegramClient): # precedence self._event_builders = hacks.ReverseList() + self._loop = asyncio.get_event_loop() self._loop.run_until_complete(self._async_init(bot_token=bot_token)) core_plugin = Path(__file__).parent / "_core.py"