feat(bot): add bot account ownership and balance

This commit is contained in:
2026-07-24 10:44:48 +05:00
parent 87385228ea
commit 8bd5c80693
22 changed files with 1008 additions and 393 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ async def stop_twofa_task(message_id: int) -> None:
)
async def auto_update_2fa(message, bot_name: str) -> None:
async def auto_update_2fa(message, bot_name: str, account_id: int) -> None:
last_code = None
message_id = message.message_id
logger.info(
@@ -45,7 +45,7 @@ async def auto_update_2fa(message, bot_name: str) -> None:
try:
await message.edit_text(
text,
reply_markup=twofa_keyboard(bot_name, bool(confirmations)),
reply_markup=twofa_keyboard(account_id, bool(confirmations)),
)
last_code = code