diff --git a/pyrogram/types/payments/star_gift.py b/pyrogram/types/payments/star_gift.py index fcf9fa7e..ac74a243 100644 --- a/pyrogram/types/payments/star_gift.py +++ b/pyrogram/types/payments/star_gift.py @@ -238,7 +238,7 @@ class StarGift(Object): users: dict ) -> "StarGift": caption, caption_entities = ( - utils.parse_text_entities( + utils.parse_text_with_entities( client, getattr(user_star_gift, "message", None), users ) ).values() @@ -320,7 +320,7 @@ class StarGift(Object): action = message.action # type: raw.types.MessageActionStarGift caption, caption_entities = ( - utils.parse_text_entities( + utils.parse_text_with_entities( client, getattr(action, "message", None), users ) ).values()