This commit is contained in:
2025-06-08 20:55:08 +09:00
parent f7e0d17829
commit 7a75f79413
139 changed files with 10619 additions and 2340 deletions

View File

@@ -1,25 +1,25 @@
import asyncio
import logging
from aiogram import Bot, Dispatcher
from config import TOKEN
from app.database.models import async_main
from app.handlers import router
from app.admin import admin
async def main():
await async_main()
bot = Bot(token=TOKEN)
dp = Dispatcher()
dp.include_routers(admin, router)
await dp.start_polling(bot)
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
try:
asyncio.run(main())
except KeyboardInterrupt:
import asyncio
import logging
from aiogram import Bot, Dispatcher
from config import TOKEN
from app.database.models import async_main
from app.handlers import router
from app.admin import admin
async def main():
await async_main()
bot = Bot(token=TOKEN)
dp = Dispatcher()
dp.include_routers(admin, router)
await dp.start_polling(bot)
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
try:
asyncio.run(main())
except KeyboardInterrupt:
print('Exit')