Skip to content

Commit 9ce6106

Browse files
fix: Event Loop DI issue
1 parent 8e26877 commit 9ce6106

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

extras/telegram_bot/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ async def start_handler(update: Update, context):
5151

5252

5353
async def post_init(app):
54+
from creart import add_instance
55+
import asyncio
56+
add_instance(asyncio.get_running_loop(), asyncio.AbstractEventLoop)
57+
5458
await run_sync(it(WebAPI).init)
5559
await user_db.load_initial()
5660

0 commit comments

Comments
 (0)