peyk.platforms.telegram.methods.set_sticker_mask_position

async peyk.platforms.telegram.methods.set_sticker_mask_position(self, sticker: str, mask_position: MaskPosition | None = None) bool

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.

Parameters:
  • sticker – File identifier of the sticker

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

Returns:

Result returned by Telegram on successful execution.

Return type:

bool