style: reformat handlers and UI for readability

This commit is contained in:
2026-07-22 18:50:10 +05:00
parent 04f17ff8e2
commit e4de501472
10 changed files with 89 additions and 32 deletions
+2 -4
View File
@@ -69,8 +69,7 @@ async def redeem_single_bot_keys(bot_name: str, keys: list[str]) -> str:
text = (
f"Результат активации для <code>{bot_name}</code>\n\n"
f"✅ Успешно: {success_count}\n"
f"❌ Ошибок: {failed_count}\n\n"
+ "\n".join(results[:50])
f"❌ Ошибок: {failed_count}\n\n" + "\n".join(results[:50])
)
return text[:4000] + ("\n\n...обрезано" if len(text) > 4000 else "")
@@ -119,7 +118,6 @@ async def redeem_all_bots_keys(keys: list[str]) -> str:
text = (
"Результат активации\n\n"
f"✅ Успешно: {success_count}\n"
f"❌ Ошибок: {failed_count}\n\n"
+ "\n".join(results[:50])
f"❌ Ошибок: {failed_count}\n\n" + "\n".join(results[:50])
)
return text[:4000] + ("\n\n...обрезано" if len(text) > 4000 else "")