Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deptyped/aiogram-media-group
aiogram handler for media groups (also known as albums)
https://github.com/deptyped/aiogram-media-group
aiogram python telegram telegram-bot telegram-bot-api telegram-bots-api
Last synced: 10 days ago
JSON representation
aiogram handler for media groups (also known as albums)
- Host: GitHub
- URL: https://github.com/deptyped/aiogram-media-group
- Owner: deptyped
- License: mit
- Created: 2021-01-22T10:37:29.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T08:00:48.000Z (11 months ago)
- Last Synced: 2024-03-15T10:11:52.690Z (8 months ago)
- Topics: aiogram, python, telegram, telegram-bot, telegram-bot-api, telegram-bots-api
- Language: Python
- Homepage: https://pypi.org/project/aiogram-media-group/
- Size: 78.1 KB
- Stars: 28
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aiogram-media-group
aiogram handler for media groups (also known as albums)
### Supported drivers
- [In-memory](aiogram_media_group/storages/memory.py)
- [Redis](aiogram_media_group/storages/redis.py) (aiogram 2.x only)
- [Mongo DB](aiogram_media_group/storages/mongo.py) (aiogram 2.x only)### Install
```bash
pip install aiogram-media-group
# or
poetry add aiogram-media-group
```### Usage
Minimal usage example:
```python
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](https://github.com/deptyped/aiogram-media-group/blob/main/examples) for complete usage examples