Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 768 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 768 Bytes

aiogram-media-group

aiogram handler for media groups (also known as albums)

Supported drivers

Install

pip install aiogram-media-group
# or
poetry add aiogram-media-group

Usage

Minimal usage example:

from aiogram_media_group import media_group_handler

@dp.message(F.media_group_id, F.content_type.in_({'photo'}))
@media_group_handler
async def album_handler(messages: List[types.Message]):
    print(messages)

Checkout examples for complete usage examples