refactor: split backend domains and add API behavior coverage

This commit is contained in:
3252a8
2026-05-13 18:38:10 +03:00
parent a96007d48a
commit 7401649841
103 changed files with 10558 additions and 9832 deletions
+1 -1
View File
@@ -312,7 +312,7 @@ async def send_direct_message(
Отправляет прямое сообщение с дополнительной обработкой для sticker и video_note.
Для этих типов медиа отправляется отдельное текстовое сообщение, т.к. они не поддерживают caption.
Автоматически фильтрует неподдерживаемые параметры.
"""
""" # noqa: E501
match content.content_type:
case "sticker":
# Отправляем стикер с отфильтрованными параметрами
+1 -1
View File
@@ -25,7 +25,7 @@ def append_query_params(base_url: str, params: dict[str, str]) -> str:
def subscription_mini_app_topup_url(settings: Settings, kind: str) -> Optional[str]:
"""Return Mini App URL that opens the traffic top-up flow for ``kind`` (``regular`` or ``premium``)."""
"""Return Mini App URL that opens the traffic top-up flow for ``kind`` (``regular`` or ``premium``).""" # noqa: E501
base = str(getattr(settings, "SUBSCRIPTION_MINI_APP_URL", None) or "").strip()
if not base:
return None