Run Telegram loop

This commit is contained in:
Alex Kotov 2023-01-08 22:51:45 +04:00
parent 8f78ee8c2d
commit 791c2f815c
No known key found for this signature in database
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 1 additions and 1 deletions

View File

@ -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)