peyk.platforms.telegram.types.accepted_gift_types

Classes

AcceptedGiftTypes(unlimited_gifts, ...)

This object describes the types of gifts that can be gifted to a user or a chat.

class peyk.platforms.telegram.types.accepted_gift_types.AcceptedGiftTypes(unlimited_gifts: bool, limited_gifts: bool, unique_gifts: bool, premium_subscription: bool, gifts_from_channels: bool)[source]

Bases: object

This object describes the types of gifts that can be gifted to a user or a chat.

Variables:
  • unlimited_gifts (bool) – True, if unlimited regular gifts are accepted

  • limited_gifts (bool) – True, if limited regular gifts are accepted

  • unique_gifts (bool) – True, if unique gifts or gifts that can be upgraded to unique for free are accepted

  • premium_subscription (bool) – True, if a Telegram Premium subscription is accepted

  • gifts_from_channels (bool) – True, if transfers of unique gifts from channels are accepted

unlimited_gifts: bool
limited_gifts: bool
unique_gifts: bool
premium_subscription: bool
gifts_from_channels: bool
classmethod from_dict(data: dict | None) AcceptedGiftTypes | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.