diff --git a/llama_hub/telegram/base.py b/llama_hub/telegram/base.py index 33d02e7088..314850d2c4 100644 --- a/llama_hub/telegram/base.py +++ b/llama_hub/telegram/base.py @@ -47,7 +47,8 @@ def __init__( self.api_id = api_id self.api_hash = api_hash self.phone_number = phone_number - self.loop = asyncio.get_event_loop() + self.loop = asyncio.new_event_loop() + asyncio.set_event_loop(self.loop) def load_data( self,