peyk.platforms.telegram.types.transaction_partner_chat

Classes

TransactionPartnerChat([type, chat])

Describes a transaction with a chat.

class peyk.platforms.telegram.types.transaction_partner_chat.TransactionPartnerChat(type: str = 'chat', chat: Chat | None = None)[source]

Bases: object

Describes a transaction with a chat.

Variables:
  • type (str) – Type of the transaction partner, always ‘chat’

  • chat (peyk.platforms.telegram.types.chat.Chat | None) – Information about the chat

  • gift – The gift sent to the chat by the bot

type: str = 'chat'
chat: Chat | None = None
classmethod from_dict(data: dict | None) TransactionPartnerChat | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.