UniqueGift

class telegram.UniqueGift(base_name, name, number, model, symbol, backdrop, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object describes a unique gift that was upgraded from a regular gift.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal if their base_name, name, number, model, symbol, and backdrop are equal.

Added in version 22.1.

Parameters:
base_name[source]

Human-readable name of the regular gift from which this unique gift was upgraded.

Type:

str

name[source]

Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas.

Type:

str

number[source]

Unique number of the upgraded gift among gifts upgraded from the same regular gift.

Type:

int

model[source]

Model of the gift.

Type:

telegram.UniqueGiftModel

symbol[source]

Symbol of the gift.

Type:

telegram.UniqueGiftSymbol

backdrop[source]

Backdrop of the gift.

Type:

telegram.UniqueGiftBackdrop

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

See telegram.TelegramObject.de_json().