com.pengrad.telegrambot.request.EditMessageCaption 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.InlineKeyboardMarkup;
import com.pengrad.telegrambot.model.request.ParseMode;
import com.pengrad.telegrambot.response.BaseResponse;
import com.pengrad.telegrambot.response.SendResponse;
/**
* Stas Parshin
* 07 May 2016
*/
public class EditMessageCaption extends BaseRequest {
public EditMessageCaption(Object chatId, int messageId) {
super(SendResponse.class);
add("chat_id", chatId).add("message_id", messageId);
}
public EditMessageCaption(String inlineMessageId) {
super(BaseResponse.class);
add("inline_message_id", inlineMessageId);
}
public EditMessageCaption caption(String caption) {
return add("caption", caption);
}
public EditMessageCaption parseMode(ParseMode parseMode) {
return add("parse_mode", parseMode.name());
}
public EditMessageCaption captionEntities(MessageEntity... entities) {
return add("caption_entities", entities);
}
public EditMessageCaption replyMarkup(InlineKeyboardMarkup replyMarkup) {
return add("reply_markup", replyMarkup);
}
public EditMessageCaption showCaptionAboveMedia(Boolean showCaptionAboveMedia) {
return add("show_caption_above_media", showCaptionAboveMedia);
}
public EditMessageCaption businessConnectionId(String businessConnectionId) {
return add("business_connection_id", businessConnectionId);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy