Skip to content

Commit

Permalink
pyrofork: fix(send_media_group.py) Fixed media.caption_entities param…
Browse files Browse the repository at this point in the history
…eter 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.
  • Loading branch information
X1A0CA1 authored Jan 2, 2025
1 parent 56e9173 commit ecc15f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/methods/messages/send_media_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ async def send_media_group(
raw.types.InputSingleMedia(
media=media,
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))
)
)

Expand Down

0 comments on commit ecc15f6

Please sign in to comment.