fix: server deletion when disabled / fix: multiple gifts receiving / add: tariff group info in subscription

This commit is contained in:
Capybara-z
2025-06-30 21:48:14 +03:00
parent e7f91a971b
commit 33e44abef0
7 changed files with 35 additions and 12 deletions
+3 -1
View File
@@ -570,12 +570,14 @@ async def finalize_key_creation(
)
else:
tariff_duration = tariff_info["name"] if tariff_info else None
subgroup_title = tariff_info.get("subgroup_title", "") if tariff_info else ""
key_message_text = key_message_success(
link_to_show,
tariff_name=tariff_duration,
traffic_limit=tariff_info.get("traffic_limit", 0) if tariff_info else 0,
device_limit=tariff_info.get("device_limit", 0) if tariff_info else 0
device_limit=tariff_info.get("device_limit", 0) if tariff_info else 0,
subgroup_title=subgroup_title
)
await edit_or_send_message(