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.


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.

model_post_init(_ModelMetaclass__context: Any) None#

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

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.


As bot method#

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

Method as object#


  • 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(...)