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 and gifts are equal.

Added in version 22.1.

Parameters:
total_count[source]

The total number of gifts owned by the user or the chat.

Type:

int

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:

str

classmethod de_json(data, bot=None)[source]

See telegram.TelegramObject.de_json().