Skip to content

Commit

Permalink
Added the field subscription_period to the class TransactionPartnerU…
Browse files Browse the repository at this point in the history
…ser.
  • Loading branch information
coder2020official committed Nov 17, 2024
1 parent a12d8c2 commit 8eb5d10
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion telebot/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -10489,18 +10489,23 @@ class TransactionPartnerUser(TransactionPartner):
:param invoice_payload: Optional, Bot-specified invoice payload
:type invoice_payload: :obj:`str`
:param subscription_period: Optional. The duration of the paid subscription
:type subscription_period: :obj:`int`
:param paid_media: Optional. Information about the paid media bought by the user
:type paid_media: :obj:`list` of :class:`PaidMedia`
:return: Instance of the class
:rtype: :class:`TransactionPartnerUser`
"""

def __init__(self, type, user, invoice_payload=None, paid_media: Optional[List[PaidMedia]] = None, **kwargs):
def __init__(self, type, user, invoice_payload=None, paid_media: Optional[List[PaidMedia]] = None,
subscription_period=None, **kwargs):
self.type: str = type
self.user: User = user
self.invoice_payload: Optional[str] = invoice_payload
self.paid_media: Optional[List[PaidMedia]] = paid_media
self.subscription_period: Optional[int] = subscription_period

@classmethod
def de_json(cls, json_string):
Expand Down

0 comments on commit 8eb5d10

Please sign in to comment.