getStickerSet

Returns: StickerSet

class aiogram.methods.get_sticker_set.GetStickerSet(*, name: str, **extra_data: Any)[source]

Use this method to get a sticker set. On success, a aiogram.types.sticker_set.StickerSet object is returned.

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

name: str

Name of the sticker set

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: StickerSet = await bot.get_sticker_set(...)

Method as object

Imports:

  • from aiogram.methods.get_sticker_set import GetStickerSet

  • alias: from aiogram.methods import GetStickerSet

With specific bot

result: StickerSet = await bot(GetStickerSet(...))