Правка
This commit is contained in:
parent
bd989270bc
commit
a7fcf645b7
@ -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"
|
link.url for link in message.caption_entities if link.type == "text_link"
|
||||||
]
|
]
|
||||||
if album:
|
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:
|
elif message.photo:
|
||||||
photos: PhotoSize = [message.photo[0].file_id]
|
photos: PhotoSize = [message.photo[-1].file_id]
|
||||||
else:
|
else:
|
||||||
text: str = message.text
|
text: str = message.text
|
||||||
links2 = re.findall(pattern, message.text)
|
links2 = re.findall(pattern, message.text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user