OwnedGifts¶
- class telegram.OwnedGifts(total_count, gifts, next_offset=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObject
Contains the list of gifts received and owned by a user or a chat.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
total_count
andgifts
are equal.Returned In
Added in version 22.1.
- Parameters:
total_count (
int
) – The total number of gifts owned by the user or the chat.gifts (Sequence[
telegram.OwnedGift
]) – The list of gifts.next_offset (
str
, optional) – Offset for the next request. If empty, then there are no more results.
- gifts[source]¶
The list of gifts.
- Type:
Sequence[
telegram.OwnedGift
]
- next_offset[source]¶
Optional. Offset for the next request. If empty, then there are no more results.
- Type: