pro.zackpollard.telegrambot.api.chat.message.ForceReply Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtelegram-botapi Show documentation
Show all versions of jtelegram-botapi Show documentation
The Java Telegram Bot API is a wrapper for the Telegram HTTP Bot API
package pro.zackpollard.telegrambot.api.chat.message;
/**
* @author Zack Pollard
*/
public class ForceReply implements ReplyMarkup {
private final boolean force_reply = true;
private boolean selective = false;
private ForceReply(ForceReplyBuilder builder) {
this.selective = builder.selective;
}
public ForceReply() {
}
public ForceReply(boolean selective) {
this.selective = selective;
}
public static ForceReplyBuilder builder() {
return new ForceReplyBuilder();
}
public boolean getSelective() {
return selective;
}
@Override
public void setSelective(boolean selective) {
this.selective = selective;
}
@Override
public ReplyMarkupType getType() {
return ReplyMarkupType.FORCE_REPLY;
}
public static class ForceReplyBuilder {
private boolean selective = false;
private ForceReplyBuilder() {
}
public ForceReplyBuilder selective(boolean selective) {
this.selective = selective;
return this;
}
public ForceReply build() {
return new ForceReply(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy