com.pengrad.telegrambot.model.request.KeyboardButton 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.model.request;
import java.io.Serializable;
/**
* Stas Parshin
* 06 May 2016
*/
public class KeyboardButton implements Serializable {
private final static long serialVersionUID = 0L;
private String text;
private boolean request_contact;
private boolean request_location;
private KeyboardButtonPollType request_poll;
public KeyboardButton(String text) {
this.text = text;
}
public KeyboardButton requestLocation(boolean requestLocation) {
request_location = requestLocation;
return this;
}
public KeyboardButton requestContact(boolean requestContact) {
request_contact = requestContact;
return this;
}
public KeyboardButton requestPoll(KeyboardButtonPollType poll) {
this.request_poll = poll;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy