UniqueGiftBackdrop

class telegram.UniqueGiftBackdrop(name, colors, rarity_per_mille, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object describes the backdrop of a unique gift.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal if their name, colors, and rarity_per_mille are equal.

Added in version 22.1.

Parameters:
name[source]

Name of the backdrop.

Type:

str

colors[source]

Colors of the backdrop.

Type:

telegram.UniqueGiftBackdropColors

rarity_per_mille[source]

The number of unique gifts that receive this backdrop for every 1000 gifts upgraded.

Type:

int

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

See telegram.TelegramObject.de_json().