All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pengrad.telegrambot.request.SetStickerMaskPosition Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy