peyk.platforms.telegram.types.owned_gifts¶
Classes
|
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:
objectContains the list of gifts received and owned by a user or a chat.
- Variables:
total_count (int) – The total number of gifts owned by the user or the chat
gifts (List[peyk.platforms.telegram.types.owned_gift_regular.OwnedGiftRegular | peyk.platforms.telegram.types.owned_gift_unique.OwnedGiftUnique]) – The list of gifts
next_offset (str | None) – Offset for the next request. If empty, then there are no more results.
- 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.