com.pengrad.telegrambot.request.AddStickerToSet 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;
/**
* Stas Parshin
* 23 July 2017
*/
public class AddStickerToSet extends AbstractUploadRequest {
public static AddStickerToSet tgsSticker(Long userId, String name, String emojis, Object tgsSticker) {
return new AddStickerToSet(userId, name, emojis, "tgs_sticker", tgsSticker);
}
public AddStickerToSet(Long userId, String name, Object pngSticker, String emojis) {
this(userId, name, emojis, "png_sticker", pngSticker);
}
private AddStickerToSet(Long userId, String name, String emojis, String stickerParam, Object sticker) {
super(BaseResponse.class, stickerParam, sticker);
add("user_id", userId);
add("name", name);
add("emojis", emojis);
}
public AddStickerToSet maskPosition(MaskPosition maskPosition) {
return add("mask_position", maskPosition);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy