
me.niccolomattei.api.telegram.keyboard.KeyboardButton Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegram Show documentation
Show all versions of telegram Show documentation
Simple yet powerful telegram bot api.
package me.niccolomattei.api.telegram.keyboard;
import org.json.JSONObject;
import me.niccolomattei.api.telegram.serialization.JSONSerializator;
public class KeyboardButton implements ReplyMarkup {
public String text;
public boolean request_contact;
public boolean request_location;
public KeyboardButton(String text, boolean request_contact, boolean request_location) {
super();
this.text = text;
this.request_contact = request_contact;
this.request_location = request_location;
}
public String getText() {
return text;
}
public boolean isRequest_contact() {
return request_contact;
}
public boolean isRequest_location() {
return request_location;
}
@Override
public String serialize() {
return JSONSerializator.serialize(this);
}
@Override
public JSONObject serializeJson() {
return JSONSerializator.serializeJson(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy