Fix send_media_group (#87)

when passing caption and caption_entities instead of parse_mode
This commit is contained in:
Gautam Kumar 2024-09-08 19:28:25 +05:30 committed by GitHub
parent cecccd5513
commit 95546f81cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -445,7 +445,7 @@ class SendMediaGroup:
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)
)
)