TransactionPartnerOther

class telegram.TransactionPartnerOther(*, api_kwargs=None)[source]

Bases: telegram.TransactionPartner

Describes a transaction with an unknown partner.

Added in version 21.4.

type[source]

The type of the transaction partner, always 'other'.

Type:

str

FRAGMENT = 'fragment'[source]

telegram.constants.TransactionPartnerType.FRAGMENT

OTHER = 'other'[source]

telegram.constants.TransactionPartnerType.OTHER

TELEGRAM_ADS = 'telegram_ads'[source]

telegram.constants.TransactionPartnerType.TELEGRAM_ADS

USER = 'user'[source]

telegram.constants.TransactionPartnerType.USER

classmethod de_json(data, bot=None)[source]

Converts JSON data to the appropriate TransactionPartner object, i.e. takes care of selecting the correct subclass.

Parameters:
Returns:

The Telegram object.