aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index c01aa6b..37c5d12 100644
--- a/main.py
+++ b/main.py
@@ -1,3 +1,4 @@
+import asyncio
import logging
from pathlib import Path
@@ -18,6 +19,7 @@ def load_config(config_path: Path | None) -> dict:
def run_bot(bot: Bot) -> None:
+ asyncio.run(bot.wake_up())
bot.app.run_polling(poll_interval=1.0)
assert "@" + bot.app.bot.username == bot.messenger.username