Aiogram handler for media groups (also known as albums)
Project description
aiogram-media-group
aiogram handler for media groups (also known as albums)
Features
- aiogram 3 support
- Redis storage driver is supported and ready to work with multiple bot instances (aiogram 2 only)
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
Built Distribution
Close
Hashes for aiogram-media-group-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c66ea5be0edb5f7e3980de2c214dacd906ce082cd578b82833ce3659e3d73829 |
|
MD5 | 2776b4a9b8cf3bd62f820bf5a7fdd991 |
|
BLAKE2b-256 | fdaa9ea0add454f406411ac307467ca3bf412f4bcb30d7e7df5c65a99334bc75 |
Close
Hashes for aiogram_media_group-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d28b66bdbf47616788f8bad7efa4d1978fb63302f72537e9379dfe9501462b27 |
|
MD5 | 073fb1bdfb6a5a91e85e308ab4ddb5f5 |
|
BLAKE2b-256 | 8d54da9ad81846caf79880c8d923ab3bcc65a13581a735fee7b117e5d3b6c869 |