Class TransactionPartner

Hierarchy (view full)

  • Base
    • TransactionPartner

Constructors

Properties

paidMedia?: PaidMedia[]

Information about the paid media bought by the user

paidMediaPayload?: string

Bot-specified paid media payload

payload?: string

Bot-specified invoice payload

type:
    | "other"
    | "user"
    | "fragment"
    | "telegram_ads"

Type of the transaction partner

user?: User

Information about the user

State of the transaction if the transaction is outgoing

Accessors

Methods

  • Parameters

    • data: TransactionPartner

      Data about the describes the source of a transaction, or its recipient for outgoing transactions

    Returns TransactionPartner

  • Protected

    Updates the current instance with new data and returns a clone of the updated instance

    Parameters

    • data: Record<string, any>

      The data to update the instance with

    Returns Base

    A clone of the updated instance