fix: Fixed error with calling commands within active state

This commit is contained in:
ITQ
2024-03-23 02:42:41 +03:00
parent 4f3295a315
commit 675e5ab891
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -180,6 +180,7 @@ async def profile_change_entered(message: Message, state: FSMContext) -> None:
successfully=True,
)
await message.delete()
await delete_message_from_state(state, message.chat.id, message.bot)
state_data = await state.get_data()
@@ -220,7 +221,6 @@ async def profile_change_entered(message: Message, state: FSMContext) -> None:
except TelegramBadRequest:
pass
await message.delete()
await message.answer(
messages.PROFILE_UPDATED,
reply_markup=ReplyKeyboardRemove(),