@@ -10495,17 +10495,21 @@ class TransactionPartnerUser(TransactionPartner):
1049510495 :param paid_media: Optional. Information about the paid media bought by the user
1049610496 :type paid_media: :obj:`list` of :class:`PaidMedia`
1049710497
10498+ :param gift: Optional. The gift sent to the user by the bot
10499+ :type gift: :class:`Gift`
10500+
1049810501 :return: Instance of the class
1049910502 :rtype: :class:`TransactionPartnerUser`
1050010503 """
1050110504
1050210505 def __init__ (self , type , user , invoice_payload = None , paid_media : Optional [List [PaidMedia ]] = None ,
10503- subscription_period = None , ** kwargs ):
10506+ subscription_period = None , gift : Optional [ Gift ] = None , ** kwargs ):
1050410507 self .type : str = type
1050510508 self .user : User = user
1050610509 self .invoice_payload : Optional [str ] = invoice_payload
1050710510 self .paid_media : Optional [List [PaidMedia ]] = paid_media
1050810511 self .subscription_period : Optional [int ] = subscription_period
10512+ self .gift : Optional [Gift ] = gift
1050910513
1051010514 @classmethod
1051110515 def de_json (cls , json_string ):
@@ -10514,6 +10518,8 @@ def de_json(cls, json_string):
1051410518 obj ['user' ] = User .de_json (obj ['user' ])
1051510519 if 'paid_media' in obj :
1051610520 obj ['paid_media' ] = [PaidMedia .de_json (media ) for media in obj ['paid_media' ]]
10521+ if 'gift' in obj :
10522+ obj ['gift' ] = Gift .de_json (obj ['gift' ])
1051710523 return cls (** obj )
1051810524
1051910525
@@ -11025,7 +11031,7 @@ def de_json(cls, json_string):
1102511031 obj = cls .check_json (json_string )
1102611032 return cls (** obj )
1102711033
11028-
11034+
1102911035class Gift (JsonDeserializable ):
1103011036 """
1103111037 This object represents a gift that can be sent by the bot.
0 commit comments