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

asyncio bug fix in telegram loader #928

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading