peyk.platforms.telegram.types.owned_gifts

Classes

OwnedGifts(total_count, gifts[, next_offset])

Contains the list of gifts received and owned by a user or a chat.

class peyk.platforms.telegram.types.owned_gifts.OwnedGifts(total_count: int, gifts: List[OwnedGiftRegular | OwnedGiftUnique], next_offset: str | None = None)[source]

Bases: object

Contains the list of gifts received and owned by a user or a chat.

Variables:
total_count: int
gifts: List[OwnedGiftRegular | OwnedGiftUnique]
next_offset: str | None = None
classmethod from_dict(data: dict | None) OwnedGifts | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.