Add MediaGroupBuilder for media group construction (#1293)

Implemented a MediaGroupBuilder class in 'aiogram/utils/media_group.py' to help construct media groups. The class supports addition of different media types (audio, photo, video, document) to the media group with a maximum limit of 10 files. The functionality is demonstrated and usage is documented in 'docs/utils/media_group.rst'. Added related test cases in 'tests/test_utils/test_media_group.py'. This is to streamline and simplify the process of media group creation
This commit is contained in:
Alex Root Junior 2023-09-03 00:25:31 +03:00 committed by GitHub
parent 8fd110cdd1
commit 5cf8d7b565
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 509 additions and 1 deletions

1
CHANGES/1293.feature.rst Normal file
View file

@ -0,0 +1 @@
Added :class:`aiogram.utils.input_media.MediaGroupBuilder` for media group construction.