From a7fcf645b724998b7996e3709cc13d161a9c20e0 Mon Sep 17 00:00:00 2001 From: Ivan Ashikhmin Date: Thu, 2 May 2024 19:43:14 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/send_to_notion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/utils/send_to_notion.py b/app/utils/send_to_notion.py index 801f2c3..9270bfa 100644 --- a/app/utils/send_to_notion.py +++ b/app/utils/send_to_notion.py @@ -25,9 +25,9 @@ async def send_to_notion(message: Message, album): link.url for link in message.caption_entities if link.type == "text_link" ] if album: - photos: PhotoSize = [photo.photo[0].file_id for photo in album] + photos: PhotoSize = [photo.photo[-1].file_id for photo in album] elif message.photo: - photos: PhotoSize = [message.photo[0].file_id] + photos: PhotoSize = [message.photo[-1].file_id] else: text: str = message.text links2 = re.findall(pattern, message.text)