mirror of
https://github.com/EDeev/circlechek.git
synced 2026-06-15 19:10:59 +03:00
18 lines
472 B
Python
18 lines
472 B
Python
import asyncio, logging, warnings
|
|
|
|
from init import *
|
|
from handlers import router
|
|
|
|
|
|
async def main() -> None:
|
|
dp.include_router(router)
|
|
await bot.delete_webhook(drop_pending_updates=True)
|
|
await dp.start_polling(bot, allowed_updates=dp.resolve_used_update_types(), skipUpdates=True)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
logging.basicConfig(level=logging.INFO)
|
|
# warnings.filterwarnings("ignore")
|
|
|
|
try: asyncio.run(main())
|
|
except KeyboardInterrupt: pass
|