com.pengrad.telegrambot.request.AnswerPreCheckoutQuery 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
* 26 May 2017
*/
public class AnswerPreCheckoutQuery extends BaseRequest {
public AnswerPreCheckoutQuery(String preCheckoutQueryId) {
super(BaseResponse.class);
add("pre_checkout_query_id", preCheckoutQueryId).add("ok", true);
}
public AnswerPreCheckoutQuery(String preCheckoutQueryId, String errorMessage) {
super(BaseResponse.class);
add("pre_checkout_query_id", preCheckoutQueryId).add("ok", false).add("error_message", errorMessage);
}
}