This commit is contained in:
2024-06-17 10:44:18 +03:00
parent c2255c2166
commit 37b152a431
14 changed files with 403 additions and 0 deletions

25
bot-market/run.py Normal file
View File

@@ -0,0 +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:
print('Exit')