@@ -405,8 +405,8 @@ class Message(Object, Update):
405405 checklist_tasks_added (:obj:`~pyrogram.types.ChecklistTasksAdded`, *optional*):
406406 Service message: checklist tasks added.
407407
408- gift_code (:obj:`~pyrogram.types.GiftCode `, *optional*):
409- Service message: gift code information.
408+ premium_gift_code (:obj:`~pyrogram.types.PremiumGiftCode `, *optional*):
409+ Service message: premium gift code information.
410410
411411 gifted_premium (:obj:`~pyrogram.types.GiftedPremium`, *optional*):
412412 Service message: gifted premium information.
@@ -669,7 +669,7 @@ def __init__(
669669 direct_message_price_changed : Optional ["types.DirectMessagePriceChanged" ] = None ,
670670 checklist_tasks_done : Optional [List ["types.ChecklistTasksDone" ]] = None ,
671671 checklist_tasks_added : Optional [List ["types.ChecklistTasksAdded" ]] = None ,
672- gift_code : Optional ["types.PremiumGiftCode" ] = None ,
672+ premium_gift_code : Optional ["types.PremiumGiftCode" ] = None ,
673673 gifted_premium : Optional ["types.GiftedPremium" ] = None ,
674674 gifted_stars : Optional ["types.GiftedStars" ] = None ,
675675 gifted_ton : Optional ["types.GiftedTon" ] = None ,
@@ -835,7 +835,7 @@ def __init__(
835835 self .direct_message_price_changed = direct_message_price_changed
836836 self .checklist_tasks_done = checklist_tasks_done
837837 self .checklist_tasks_added = checklist_tasks_added
838- self .gift_code = gift_code
838+ self .premium_gift_code = premium_gift_code
839839 self .gifted_premium = gifted_premium
840840 self .gifted_stars = gifted_stars
841841 self .gifted_ton = gifted_ton
@@ -927,7 +927,7 @@ async def _parse_service(
927927 contact_registered = None
928928 text = None
929929 proximity_alert_triggered = None
930- gift_code = None
930+ premium_gift_code = None
931931 gifted_premium = None
932932 gifted_stars = None
933933 gifted_ton = None
@@ -1041,8 +1041,8 @@ async def _parse_service(
10411041 service_type = enums .MessageServiceType .PROXIMITY_ALERT_TRIGGERED
10421042 proximity_alert_triggered = types .ProximityAlertTriggered ._parse (client , action , users , chats )
10431043 elif isinstance (action , raw .types .MessageActionGiftCode ):
1044- service_type = enums .MessageServiceType .GIFT_CODE
1045- gift_code = await types .PremiumGiftCode ._parse (client , action , users , chats )
1044+ service_type = enums .MessageServiceType .PREMIUM_GIFT_CODE
1045+ premium_gift_code = await types .PremiumGiftCode ._parse (client , action , users , chats )
10461046 elif isinstance (action , raw .types .MessageActionGiftPremium ):
10471047 service_type = enums .MessageServiceType .GIFTED_PREMIUM
10481048 gifted_premium = await types .GiftedPremium ._parse (
@@ -1253,7 +1253,7 @@ async def _parse_service(
12531253 contact_registered = contact_registered ,
12541254 text = text ,
12551255 proximity_alert_triggered = proximity_alert_triggered ,
1256- gift_code = gift_code ,
1256+ premium_gift_code = premium_gift_code ,
12571257 gifted_premium = gifted_premium ,
12581258 gifted_stars = gifted_stars ,
12591259 gifted_ton = gifted_ton ,
0 commit comments