"""New Bobi runtime runner."""

from __future__ import annotations

from bot.app.bootstrap import build_application
from bot.app.registry import register_handlers
from bot.core.logging import configure_logging


def run() -> None:
    configure_logging()

    app, _container = build_application()

    register_handlers(app)

    app.run_polling(drop_pending_updates=True)
