From a7728f80d0a82991f27f70433bbcfde8a7c740c0 Mon Sep 17 00:00:00 2001 From: 3252a8 <3252a8@proton.me> Date: Mon, 18 May 2026 21:13:30 +0300 Subject: [PATCH] fix: resolve yookassa webhook path via provider spec in startup log --- backend/bot/main_bot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/bot/main_bot.py b/backend/bot/main_bot.py index e4e28be..08ce803 100644 --- a/backend/bot/main_bot.py +++ b/backend/bot/main_bot.py @@ -272,10 +272,14 @@ async def run_bot(settings_param: Settings): await dp.emit_shutdown() raise SystemExit("WEBHOOK_BASE_URL is required. Polling mode is disabled.") + from bot.payment_providers import get_provider_spec + + _yk_spec = get_provider_spec("yookassa") + _yk_path = _yk_spec.webhook_path(settings_param) if _yk_spec and _yk_spec.webhook_path else "-" logging.info( "Starting AIOHTTP server: webhook_base=%s yookassa_path=%s", settings_param.WEBHOOK_BASE_URL, - settings_param.yookassa_webhook_path, + _yk_path, ) async def web_server_task():