Sticker

class aiogram.types.sticker.Sticker(conf: Optional[Dict[str, Any]] = None, **kwargs: Any)[source]

Bases: aiogram.types.base.TelegramObject, aiogram.types.mixins.Downloadable

This object represents a sticker.

https://core.telegram.org/bots/api#sticker

Deserialize object

Parameters
  • conf

  • kwargs

async set_position_in_set(position: Integer) → Boolean[source]

Use this method to move a sticker in a set created by the bot to a specific position.

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

Parameters

position (base.Integer) – New sticker position in the set, zero-based

Returns

Returns True on success

Return type

base.Boolean

async delete_from_set() → Boolean[source]

Use this method to delete a sticker from a set created by the bot.

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

Parameters

sticker (base.String) – File identifier of the sticker

Returns

Returns True on success

Return type

base.Boolean