getAvailableGifts

Returns: Gifts

class aiogram.methods.get_available_gifts.GetAvailableGifts(**extra_data: Any)[source]

Returns the list of gifts that can be sent by the bot to users. Requires no parameters. Returns a aiogram.types.gifts.Gifts object.

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

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.

Usage

As bot method

result: Gifts = await bot.get_available_gifts(...)

Method as object

Imports:

  • from aiogram.methods.get_available_gifts import GetAvailableGifts

  • alias: from aiogram.methods import GetAvailableGifts

With specific bot

result: Gifts = await bot(GetAvailableGifts(...))