From 791c2f815cf6f66f1b0f8137fed52e709c45ff55 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 8 Jan 2023 22:51:45 +0400 Subject: [PATCH] Run Telegram loop --- mirrortea/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirrortea/__main__.py b/mirrortea/__main__.py index 7a88b3e..2dcf01a 100644 --- a/mirrortea/__main__.py +++ b/mirrortea/__main__.py @@ -53,7 +53,7 @@ class TelegramLoop: self.dispatcher.register_message_handler(self.on_message) async def run(self): - print(456, file=sys.stderr) + await self.dispatcher.start_polling() async def on_message(self, msg): print(msg, file=sys.stderr)