Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
asyncio bug fix in telegram loader (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
diicellman authored Feb 9, 2024
1 parent 809de40 commit 4e1b743
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llama_hub/telegram/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4e1b743

Please sign in to comment.