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
Built Distribution
File details
Details for the file aiogram-media-group-0.5.1.tar.gz
.
File metadata
- Download URL: aiogram-media-group-0.5.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.15.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5ab6c1dea4a0729c25fdb90b2310537d71d8d3554765d302b37156edaa51d33 |
|
MD5 | 45f9de4105ac3802884ceabf4696be94 |
|
BLAKE2b-256 | 476ef10d3e4980b5b81b963ed2cbcbf666b1c02bfa723cfb9a37f43c5f0ffbdd |
File details
Details for the file aiogram_media_group-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: aiogram_media_group-0.5.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.15.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31fd150769075e23e6e161b444d553b8b62a33cd7d85ef770393572470a5ca38 |
|
MD5 | ffa23b66c0315169e5e023b8b8ad7cbf |
|
BLAKE2b-256 | da225124e475fac271b5437e634ea967130e4ac98c18c9a0f00a6b7ca9ebcbf3 |