mediaGroup start work
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -52,6 +52,7 @@ def process_photo_album(album, post_caption: str = ''):
|
||||
"""
|
||||
photo_media = []
|
||||
for i, message in enumerate(album):
|
||||
print(f'message_id в функции process_photo_album: {message.message_id}\n\n')
|
||||
if i == 0:
|
||||
photo_media.append(InputMediaPhoto(media=message.photo[-1].file_id, caption=post_caption))
|
||||
else:
|
||||
@@ -64,7 +65,9 @@ async def send_media_group_message(chat_id: int, message: types.Message, media_g
|
||||
chat_id=chat_id,
|
||||
media=media_group,
|
||||
)
|
||||
print(f'ПОЛНЫЙ ОБЪЕКТ ОТПРАВЛЕННЫХ СООБЩЕНИЙ : {sent_message}\n\n')
|
||||
message_id = sent_message[-1].message_id
|
||||
print(f'ИДЕНТИФИКАТОР ПОСЛЕДНГО СООБЩЕНИЯ: {message_id}')
|
||||
return message_id
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user