Message.get_media_group()#

Message.get_media_group()#

Bound method get_media_group of Message.

Use as a shortcut for:

await client.get_media_group(
    chat_id=message.chat.id,
    message_id=message.id
)

Example

await message.get_media_group()
Returns:

List of Message – On success, a list of messages of the media group is returned.

Raises:

ValueError – In case the passed message id doesn’t belong to a media group.