From cad15e0d3a4a4a53639d800c5d61dd6b24baf7a4 Mon Sep 17 00:00:00 2001 From: Whyverum Date: Mon, 23 Dec 2024 22:08:05 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B0=D0=B7=D0=BB=D0=B8=D1=87=D0=BD?= =?UTF-8?q?=D1=8B=D0=B5=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D0=B8=20?= =?UTF-8?q?=D1=81=20=D0=BC=D0=B5=D0=B4=D0=B8=D0=B0=20(=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D1=80=D1=8B=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Test/old_files/media_func.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Test/old_files/media_func.py b/Test/old_files/media_func.py index 65973ca..ac76469 100644 --- a/Test/old_files/media_func.py +++ b/Test/old_files/media_func.py @@ -12,7 +12,7 @@ router = Router(name="media_func") # @router.message(F.photo, ~F.caption) -async def handle_photo_wo_caption(message: types.Message): +async def handle_photo_wo_caption(message: types_msg.Message): caption = f"Простите, я не могу это увидеть. Вы можете описать что это?" await message.reply_photo( photo=message.photo[-1].file_id, @@ -22,14 +22,14 @@ async def handle_photo_wo_caption(message: types.Message): # @router.message(F.photo, F.caption.contains("please")) -async def handle_photo_with_please_caption(message: types.Message): +async def handle_photo_with_please_caption(message: types_msg.Message): text = f"Простите, я не могу это увидеть." await message.reply(text) return text # @router.message(any_media_filter, ~F.caption) -async def handle_any_media_wo_caption(message: types.Message): +async def handle_any_media_wo_caption(message: types_msg.Message): if message.document: await message.reply_document( document=message.document.file_id, @@ -49,7 +49,7 @@ async def handle_any_media_wo_caption(message: types.Message): # @router.message(any_media_filter, F.caption) -async def handle_any_media_w_caption(message: types.Message): +async def handle_any_media_w_caption(message: types_msg.Message): text = f"Что-то на медиа. Твой текст: {message.caption!r}" await message.reply(text) return text