public static class TdApi.KeyboardButtonTypeRequestPoll extends TdApi.KeyboardButtonType
TdApi.KeyboardButtonType.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
forceQuiz
If true, only polls in quiz mode must be allowed to create.
|
boolean |
forceRegular
If true, only regular polls must be allowed to create.
|
Constructor and Description |
---|
KeyboardButtonTypeRequestPoll()
A button that allows the user to create and send a poll when pressed; available only in private chats.
|
KeyboardButtonTypeRequestPoll(boolean forceRegular,
boolean forceQuiz)
A button that allows the user to create and send a poll when pressed; available only in private chats.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public boolean forceRegular
public boolean forceQuiz
public static final int CONSTRUCTOR
public KeyboardButtonTypeRequestPoll()
public KeyboardButtonTypeRequestPoll(boolean forceRegular, boolean forceQuiz)
forceRegular
- If true, only regular polls must be allowed to create.forceQuiz
- If true, only polls in quiz mode must be allowed to create.public int getConstructor()
getConstructor
in class TdApi.KeyboardButtonType