Gifts

class telegram.Gifts(gifts, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object represent a list of gifts.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal if their gifts are equal.

Added in version 21.8.

Parameters:

gifts (Sequence[Gift]) – The sequence of gifts

gifts[source]

The sequence of gifts

Type:

tuple[Gift]

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

See telegram.TelegramObject.de_json().