кнопка назад при ручной проверки статуса платежа на палыче

This commit is contained in:
gy9vin
2025-10-14 19:55:24 +03:00
parent b90b270a9e
commit 1baeb50322
3 changed files with 3845 additions and 1 deletions

View File

@@ -1406,9 +1406,19 @@ async def check_pal24_payment_status(
f"❌ Платеж не завершен корректно. Обратитесь в {settings.get_support_contact_display()}"
)
from app.localization.texts import get_texts
db_user = getattr(callback, 'db_user', None)
texts = get_texts(db_user.language if db_user else 'ru') if db_user else get_texts('ru')
keyboard = types.InlineKeyboardMarkup(inline_keyboard=[
[types.InlineKeyboardButton(text=texts.t("CHECK_STATUS_BUTTON", "📊 Проверить статус"), callback_data=f"check_pal24_{local_payment_id}")],
[types.InlineKeyboardButton(text=texts.BACK, callback_data="balance_topup")]
])
await callback.answer()
await callback.message.answer(
await callback.message.edit_text(
"\n".join(message_lines),
reply_markup=keyboard,
disable_web_page_preview=True,
)

File diff suppressed because it is too large Load Diff

1917
app/handlers/balance.py.bak Normal file

File diff suppressed because it is too large Load Diff