Skip to main content

Aiogram handler for media groups (also known as albums)

Project description

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_handler(MediaGroupFilter(is_media_group=True), content_types=ContentType.PHOTO)
@media_group_handler
async def album_handler(messages: List[types.Message]):
    for message in messages:
        print(message)

Checkout examples for complete usage examples

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiogram-media-group-0.5.1.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

aiogram_media_group-0.5.1-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page