22 lines
783 B
Java
22 lines
783 B
Java
package org.telegram.telegrambots.meta.api.methods.botapimethods;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
import org.telegram.telegrambots.meta.api.methods.BotApiMethod;
|
|
import org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException;
|
|
|
|
/**
|
|
* @author Ruben Bermudez
|
|
* @version 1.0
|
|
*
|
|
* A method of Telegram Bots Api that is fully supported in json format
|
|
*/
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
public abstract class BotApiMethodBoolean extends BotApiMethod<Boolean> {
|
|
@Override
|
|
public Boolean deserializeResponse(String answer) throws TelegramApiRequestException {
|
|
return deserializeResponse(answer, Boolean.class);
|
|
}
|
|
}
|