Skip to content

Commit

Permalink
Added the field invoice_payload to the class TransactionPartnerUser,…
Browse files Browse the repository at this point in the history
… containing the bot-specified invoice payload.
  • Loading branch information
coder2020official committed Jul 1, 2024
1 parent 4ec6b40 commit ecde954
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion telebot/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -10272,13 +10272,17 @@ class TransactionPartnerUser(TransactionPartner):
:param user: Information about the user
:type user: :class:`User`
:param invoice_payload: Optional, Bot-specified invoice payload
:type invoice_payload: :obj:`str`
:return: Instance of the class
:rtype: :class:`TransactionPartnerUser`
"""

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

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

0 comments on commit ecde954

Please sign in to comment.