com.pengrad.telegrambot.request.AnswerCallbackQuery 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.response.BaseResponse;
/**
* Stas Parshin
* 07 May 2016
*/
public class AnswerCallbackQuery extends BaseRequest {
public AnswerCallbackQuery(String callbackQueryId) {
super(BaseResponse.class);
add("callback_query_id", callbackQueryId);
}
public AnswerCallbackQuery text(String text) {
return add("text", text);
}
public AnswerCallbackQuery showAlert(boolean showAlert) {
return add("show_alert", showAlert);
}
public AnswerCallbackQuery url(String url) {
return add("url", url);
}
public AnswerCallbackQuery cacheTime(int cacheTime) {
return add("cache_time", cacheTime);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy