com.pengrad.telegrambot.request.EditMessageReplyMarkup Maven / Gradle / Ivy
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 EditMessageReplyMarkup extends BaseRequest {
public EditMessageReplyMarkup(Object chatId, int messageId, String text) {
super(SendResponse.class);
add("chat_id", chatId).add("message_id", messageId).add("text", text);
}
public EditMessageReplyMarkup(String inlineMessageId, String text) {
super(BaseResponse.class);
add("inline_message_id", inlineMessageId).add("text", text);
}
public EditMessageReplyMarkup replyMarkup(InlineKeyboardMarkup replyMarkup) {
return add("reply_markup", replyMarkup);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy