Gift

class aiogram.types.gift.Gift(*, id: str, sticker: Sticker, star_count: int, total_count: int | None = None, remaining_count: int | None = None, **extra_data: Any)[source]

This object represents a gift that can be sent by the bot.

Source: https://core.telegram.org/bots/api#gift

id: str

Unique identifier of the gift

sticker: Sticker

The sticker that represents the gift

star_count: int

The number of Telegram Stars that must be paid to send the sticker

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(context: Any, /) None

We need to both initialize private attributes and call the user-defined model_post_init method.

total_count: int | None

Optional. The total number of the gifts of this type that can be sent; for limited gifts only

remaining_count: int | None

Optional. The number of remaining gifts of this type that can be sent; for limited gifts only