Fix img and logger add button back for donate

This commit is contained in:
Zakhar Izmaylov
2024-11-20 15:36:25 +03:00
parent 347805a8ae
commit 56678abbb4
7 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -22,6 +22,7 @@ router = Router()
async def process_donate(callback_query: types.CallbackQuery, state: FSMContext):
try:
await state.clear()
await callback_query.message.delete()
except Exception as e:
logger.error(f"Не удалось удалить сообщение: {e}")
@@ -54,7 +55,12 @@ async def process_donate(callback_query: types.CallbackQuery, state: FSMContext)
async def process_enter_donate_amount(
callback_query: types.CallbackQuery, state: FSMContext
):
await callback_query.message.edit_text(f"💸 Введите сумму доната в рублях:")
builder = InlineKeyboardBuilder()
builder.row(InlineKeyboardButton(text="⬅️ Назад", callback_data="donate"))
await callback_query.message.edit_text(
f"💸 Введите сумму доната в рублях:",
reply_markup=builder.as_markup()
)
await state.set_state(DonateState.entering_donate_amount)
await callback_query.answer()
+1 -1
View File
@@ -6,7 +6,7 @@ from aiogram.fsm.state import State, StatesGroup
from aiogram.types import InlineKeyboardButton, InlineKeyboardMarkup
from aiogram.utils.keyboard import InlineKeyboardBuilder
from aiohttp import web
from loguru import logger
from logger import logger
from robokassa import HashAlgorithm, Robokassa
from bot import bot
Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 36 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 36 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 36 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 36 KiB