1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-12-15 08:16:17 +00:00

удалил роутер

This commit is contained in:
mihalin
2021-09-06 00:36:03 +03:00
parent 415ec12b2f
commit 4427143450
9 changed files with 30 additions and 145 deletions

View File

@@ -30,6 +30,7 @@ class BotInstance(ABC):
raise NotImplemented()
def stop_polling(self):
print("stop polling")
self._dp.stop_polling()
async def _setup(self):
@@ -52,6 +53,7 @@ class BotInstance(ABC):
types.ContentType.VOICE])
async def start_polling(self):
print("start polling")
await self._setup()
await self._dp.start_polling()