From d5c003400ade4a8c33efc8e5b0e65b749e6bb82e Mon Sep 17 00:00:00 2001 From: mihalin Date: Thu, 12 May 2022 16:07:21 +0300 Subject: [PATCH] fix for prev --- olgram/commands/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/olgram/commands/admin.py b/olgram/commands/admin.py index f9af4c8..831240d 100644 --- a/olgram/commands/admin.py +++ b/olgram/commands/admin.py @@ -50,7 +50,7 @@ async def on_notify_text(message: types.Message, state: FSMContext): await message.answer(_("Поддерживается только текст"), reply_markup=types.ReplyKeyboardRemove()) return - if message.text.lower().strip() == _("пропустить"): + if message.text == _("Пропустить"): await state.reset_state(with_data=True) await message.answer(_("Отменено"), reply_markup=types.ReplyKeyboardRemove()) return @@ -66,7 +66,7 @@ async def on_notify_text(message: types.Message, state: FSMContext): @dp.message_handler(state="wait_owner_notify_message_confirm") async def on_notify_message_confirm(message: types.Message, state: FSMContext): - if not message.text or message.text.lower().strip() != _("Отправить"): + if not message.text or (message.text != _("Отправить")): await state.reset_state(with_data=True) await message.answer(_("Отменено"), reply_markup=types.ReplyKeyboardRemove()) return