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)