setStickerMaskPosition#

Returns: bool

class aiogram.methods.set_sticker_mask_position.SetStickerMaskPosition(*, sticker: str, mask_position: MaskPosition | None = None, **extra_data: Any)[source]#

Use this method to change the mask position of a mask sticker. The sticker must belong to a sticker set that was created by the bot. Returns True on success.

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

sticker: str#

File identifier of the sticker

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

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

mask_position: MaskPosition | None#

A JSON-serialized object with the position where the mask should be placed on faces. Omit the parameter to remove the mask position.

Usage#

As bot method#

result: bool = await bot.set_sticker_mask_position(...)

Method as object#

Imports:

  • from aiogram.methods.set_sticker_mask_position import SetStickerMaskPosition

  • alias: from aiogram.methods import SetStickerMaskPosition

With specific bot#

result: bool = await bot(SetStickerMaskPosition(...))

As reply into Webhook in handler#

return SetStickerMaskPosition(...)