
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.request.InlineKeyboardMarkup;
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, String text) {
super(SendResponse.class);
add("chat_id", chatId).add("message_id", messageId).add("text", text);
}
public EditMessageCaption(String inlineMessageId, String text) {
super(BaseResponse.class);
add("inline_message_id", inlineMessageId).add("text", text);
}
public EditMessageCaption caption(String caption) {
return add("caption", caption);
}
public EditMessageCaption replyMarkup(InlineKeyboardMarkup replyMarkup) {
return add("reply_markup", replyMarkup);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy