Skip to content

Commit

Permalink
fix send_media_group
Browse files Browse the repository at this point in the history
when passing caption and caption_entities instead of parse_mode
  • Loading branch information
gautamajay52 committed Sep 6, 2024
1 parent 7f63526 commit e614f61
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 @@ -445,7 +445,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 e614f61

Please sign in to comment.