Add storage, syncing db, rename module

This commit is contained in:
BarsTiger
2023-10-08 21:21:15 +03:00
parent 42d7f7d235
commit 0135294fcb
25 changed files with 281 additions and 2 deletions

24
bot/__init__.py Normal file
View File

@@ -0,0 +1,24 @@
from rich import print
async def runner():
from .common import dp, bot
from . import handlers
dp.include_router(
handlers.router
)
await bot.delete_webhook(drop_pending_updates=True)
await dp.start_polling(bot)
def main():
import asyncio
from rich.traceback import install
install(show_locals=True)
print('Starting...')
asyncio.run(runner())