1
0
Fork 0

Run Telegram loop

This commit is contained in:
Alex Kotov 2023-01-08 22:51:45 +04:00
parent 8f78ee8c2d
commit 791c2f815c
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -53,7 +53,7 @@ class TelegramLoop:
self.dispatcher.register_message_handler(self.on_message) self.dispatcher.register_message_handler(self.on_message)
async def run(self): async def run(self):
print(456, file=sys.stderr) await self.dispatcher.start_polling()
async def on_message(self, msg): async def on_message(self, msg):
print(msg, file=sys.stderr) print(msg, file=sys.stderr)