AIOGram handler for media groups (also known as albums)
Project description
aiogram-media-group
AIOGram handler for media groups (also known as albums)
Features
- Memory and Redis storage drivers supported
- Ready to work with multiple bot instances
Install
pip install aiogram-media-group
# or
poetry add aiogram-media-group
Usage
Minimal usage example:
from aiogram_media_group import MediaGroupFilter, media_group_handler
@dp.message_handler(MediaGroupFilter(), content_types=ContentType.PHOTO)
@media_group_handler
async def album_handler(messages: List[types.Message]):
for message in messages:
print(message)
Checkout echo-bot for complete usage example
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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1c5cbbe6c616cfdcd396889f2342d1653f4e1abd6a2cab8935a47e60eddf9c2 |
|
MD5 | 079cbcaced735adab47d4191daebca1a |
|
BLAKE2b-256 | 784cc875035d1ed1d0dc53b7ce5d583bf73e82f2922c94875ee178d03030b447 |
Close
Hashes for aiogram_media_group-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c60c25e3ffcbb9f1ab43ac8fc98a4c7277a8a1810f8df2ddbd45eed987879619 |
|
MD5 | 1824ef6c3674a8a1849568c688239bad |
|
BLAKE2b-256 | 17c20ebf06c946e4d0f8edce4cd332425592bc112b44af75d2069e421fed4490 |