com.pengrad.telegrambot.request.SetStickerMaskPosition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
package com.pengrad.telegrambot.request;
import com.pengrad.telegrambot.model.MaskPosition;
import com.pengrad.telegrambot.response.BaseResponse;
public class SetStickerMaskPosition extends BaseRequest {
/**
*
* @param sticker File identifier of the sticker
*/
public SetStickerMaskPosition(String sticker) {
super(BaseResponse.class);
add("sticker", sticker);
}
/**
*
* @param maskPosition Where the mask should be placed on faces. Omit the parameter to remove the mask position.
* @return
*/
public SetStickerMaskPosition maskPosition(MaskPosition maskPosition) {
add("mask_position", maskPosition);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy