interest coupons/ picture for rates/ small improvements

This commit is contained in:
Vladless
2026-02-04 23:45:34 +03:00
parent a967352e9a
commit db16c0d49c
10 changed files with 575 additions and 76 deletions
+4
View File
@@ -1,3 +1,4 @@
import os
from collections import defaultdict
from datetime import datetime, timedelta
from typing import Any
@@ -296,6 +297,9 @@ async def handle_key_creation(
target_message=target_message,
text=SELECT_TARIFF_PLAN_MSG + discount_message,
reply_markup=builder.as_markup(),
media_path=os.path.join("img", "tariffs.jpg"),
disable_web_page_preview=False,
force_text=True,
)
await state.update_data(
+1
View File
@@ -168,6 +168,7 @@ async def build_keys_response(records: list[Key] | None, session: AsyncSession,
if getattr(record, "tariff_id", None):
try:
from handlers.tariffs.tariff_display import resolve_vless_enabled
is_vless = await resolve_vless_enabled(session, int(record.tariff_id))
except Exception:
is_vless = False