TransactionPartnerChat

class telegram.TransactionPartnerChat(chat, gift=None, *, api_kwargs=None)[source]

Bases: telegram.TransactionPartner

Describes a transaction with a chat.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their chat are equal.

Added in version 21.11.

Parameters:
type[source]

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

Type:

str

chat[source]

Information about the chat.

Type:

telegram.Chat

gift[source]

Optional. The gift sent to the user by the bot.

Type:

telegram.Gift

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

See telegram.TransactionPartner.de_json().