mirror of
				https://github.com/civsocit/olgram.git
				synced 2025-10-30 00:43:25 +00:00 
			
		
		
		
	fix for prev
This commit is contained in:
		
							parent
							
								
									15083fed8d
								
							
						
					
					
						commit
						d5c003400a
					
				|  | @ -50,7 +50,7 @@ async def on_notify_text(message: types.Message, state: FSMContext): | ||||||
|         await message.answer(_("Поддерживается только текст"), reply_markup=types.ReplyKeyboardRemove()) |         await message.answer(_("Поддерживается только текст"), reply_markup=types.ReplyKeyboardRemove()) | ||||||
|         return |         return | ||||||
| 
 | 
 | ||||||
|     if message.text.lower().strip() == _("пропустить"): |     if message.text == _("Пропустить"): | ||||||
|         await state.reset_state(with_data=True) |         await state.reset_state(with_data=True) | ||||||
|         await message.answer(_("Отменено"), reply_markup=types.ReplyKeyboardRemove()) |         await message.answer(_("Отменено"), reply_markup=types.ReplyKeyboardRemove()) | ||||||
|         return |         return | ||||||
|  | @ -66,7 +66,7 @@ async def on_notify_text(message: types.Message, state: FSMContext): | ||||||
| 
 | 
 | ||||||
| @dp.message_handler(state="wait_owner_notify_message_confirm") | @dp.message_handler(state="wait_owner_notify_message_confirm") | ||||||
| async def on_notify_message_confirm(message: types.Message, state: FSMContext): | 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 state.reset_state(with_data=True) | ||||||
|         await message.answer(_("Отменено"), reply_markup=types.ReplyKeyboardRemove()) |         await message.answer(_("Отменено"), reply_markup=types.ReplyKeyboardRemove()) | ||||||
|         return |         return | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user