Add storage, syncing db, rename module
This commit is contained in:
24
bot/__init__.py
Normal file
24
bot/__init__.py
Normal 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())
|
||||
Reference in New Issue
Block a user