com.pengrad.telegrambot.request.SendPaidMedia 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.MessageEntity;
import com.pengrad.telegrambot.model.request.*;
import com.pengrad.telegrambot.response.MessagesResponse;
import com.pengrad.telegrambot.response.SendResponse;
import java.io.File;
import java.util.Map;
public class SendPaidMedia extends BaseRequest {
public SendPaidMedia(Object chatId, Integer starCount, InputPaidMedia... media) {
super(SendResponse.class);
add("chat_id", chatId).add("star_count", starCount).add("media", media);
}
public SendPaidMedia caption(String caption) {
return add("caption", caption);
}
public SendPaidMedia parseMode(ParseMode parseMode) {
return add("parse_mode", parseMode.name());
}
public SendPaidMedia captionEntities(MessageEntity... entities) {
return add("caption_entities", entities);
}
public SendPaidMedia showCaptionAboveMedia(boolean showCaptionAboveMedia) {
return add("show_caption_above_media", showCaptionAboveMedia);
}
public SendPaidMedia disableNotification(boolean disableNotification) {
return add("disable_notification", disableNotification);
}
public SendPaidMedia protectContent(boolean protectContent) {
return add("protect_content", protectContent);
}
public SendPaidMedia replyParameters(ReplyParameters replyParameters) {
return add("reply_parameters", replyParameters);
}
public SendPaidMedia replyMarkup(InlineKeyboardMarkup replyMarkup) {
return add("reply_markup", replyMarkup);
}
public SendPaidMedia replyMarkup(ReplyKeyboardMarkup replyMarkup) {
return add("reply_markup", replyMarkup);
}
public SendPaidMedia replyMarkup(ReplyKeyboardRemove replyMarkup) {
return add("reply_markup", replyMarkup);
}
public SendPaidMedia replyMarkup(ForceReply replyMarkup) {
return add("reply_markup", replyMarkup);
}
}