pyrofork: fix(send_media_group.py) Fixed media.caption_entities parameter not working (#104)

* fix(send_media_group.py) Fixed media.caption_entities parameter not working.

* chore(send_media_group.py): simplify parse_text_entities handling

Refactored to use ** unpacking directly in raw.types.InputSingleMedia, reducing variable assignments.
This commit is contained in:
XiaoCai 2025-01-02 15:07:29 +08:00 committed by GitHub
parent 56e9173579
commit ecc15f67a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -467,7 +467,7 @@ class SendMediaGroup:
raw.types.InputSingleMedia( raw.types.InputSingleMedia(
media=media, media=media,
random_id=self.rnd_id(), random_id=self.rnd_id(),
**await self.parser.parse(i.caption, i.parse_mode) **(await utils.parse_text_entities(self, i.caption, i.parse_mode, i.caption_entities))
) )
) )