
com.pengrad.telegrambot.request.AbstractSendRequest 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.Keyboard;
import com.pengrad.telegrambot.response.SendResponse;
/**
* stas
* 5/1/16.
*/
abstract public class AbstractSendRequest extends BaseRequest {
public AbstractSendRequest(Object chatId) {
super(SendResponse.class);
add("chat_id", chatId);
}
public T disableNotification(boolean disableNotification) {
return add("disable_notification", disableNotification);
}
public T replyToMessageId(int replyToMessageId) {
return add("reply_to_message_id", replyToMessageId);
}
public T replyMarkup(Keyboard replyMarkup) {
return add("reply_markup", replyMarkup);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy