com.pengrad.telegrambot.request.AnswerShippingQuery 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.ShippingOption;
import com.pengrad.telegrambot.response.BaseResponse;
/**
* Stas Parshin
* 25 May 2017
*/
public class AnswerShippingQuery extends BaseRequest {
public AnswerShippingQuery(String shippingQueryId, ShippingOption... shippingOptions) {
super(BaseResponse.class);
add("shipping_query_id", shippingQueryId).add("ok", true).add("shipping_options", shippingOptions);
}
public AnswerShippingQuery(String shippingQueryId, String errorMessage) {
super(BaseResponse.class);
add("shipping_query_id", shippingQueryId).add("ok", false).add("error_message", errorMessage);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy