public static class TdApi.InputMessagePoll extends TdApi.InputMessageContent
TdApi.InputMessageContent.Constructors
Modifier and Type | Field and Description |
---|---|
int |
closeDate
Point in time (Unix timestamp) when the poll will automatically be closed; for bots only.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isAnonymous
True, if the poll voters are anonymous.
|
boolean |
isClosed
True, if the poll needs to be sent already closed; for bots only.
|
int |
openPeriod
Amount of time the poll will be active after creation, in seconds; for bots only.
|
java.lang.String[] |
options
List of poll answer options, 2-10 strings 1-100 characters each.
|
java.lang.String |
question
Poll question; 1-255 characters (up to 300 characters for bots).
|
TdApi.PollType |
type
Type of the poll.
|
Constructor and Description |
---|
InputMessagePoll()
A message with a poll.
|
InputMessagePoll(java.lang.String question,
java.lang.String[] options,
boolean isAnonymous,
TdApi.PollType type,
int openPeriod,
int closeDate,
boolean isClosed)
A message with a poll.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String question
public java.lang.String[] options
public boolean isAnonymous
public TdApi.PollType type
public int openPeriod
public int closeDate
public boolean isClosed
public static final int CONSTRUCTOR
public InputMessagePoll()
public InputMessagePoll(java.lang.String question, java.lang.String[] options, boolean isAnonymous, TdApi.PollType type, int openPeriod, int closeDate, boolean isClosed)
question
- Poll question; 1-255 characters (up to 300 characters for bots).options
- List of poll answer options, 2-10 strings 1-100 characters each.isAnonymous
- True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels.type
- Type of the poll.openPeriod
- Amount of time the poll will be active after creation, in seconds; for bots only.closeDate
- Point in time (Unix timestamp) when the poll will automatically be closed; for bots only.isClosed
- True, if the poll needs to be sent already closed; for bots only.public int getConstructor()
getConstructor
in class TdApi.InputMessageContent