io.github.biezhi.tgbot.request.SendSticker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegram-bot-api Show documentation
Show all versions of telegram-bot-api Show documentation
Telegram bot library by Java
The newest version!
package io.github.biezhi.tgbot.request;
import java.io.File;
/**
* stas
* 5/2/16.
*/
public class SendSticker extends AbstractMultipartRequest {
public SendSticker(Object chatId, String sticker) {
super(chatId, sticker);
}
public SendSticker(Object chatId, File sticker) {
super(chatId, sticker);
}
public SendSticker(Object chatId, byte[] sticker) {
super(chatId, sticker);
}
@Override
protected String getFileParamName() {
return "sticker";
}
@Override
public String getDefaultFileName() {
return ContentTypes.PHOTO_FILE_NAME;
}
@Override
public String getContentType() {
return ContentTypes.PHOTO_MIME_TYPE;
}
}