public static class TdApi.SetPollAnswer extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
long |
chatId
Identifier of the chat to which the poll belongs.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
messageId
Identifier of the message containing the poll.
|
int[] |
optionIds
0-based identifiers of answer options, chosen by the user.
|
Constructor and Description |
---|
SetPollAnswer()
Default constructor for a function, which changes the user answer to a poll.
|
SetPollAnswer(long chatId,
long messageId,
int[] optionIds)
Creates a function, which changes the user answer to a poll.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public long messageId
public int[] optionIds
public static final int CONSTRUCTOR
public SetPollAnswer()
Returns Ok
public SetPollAnswer(long chatId, long messageId, int[] optionIds)
Returns Ok
chatId
- Identifier of the chat to which the poll belongs.messageId
- Identifier of the message containing the poll.optionIds
- 0-based identifiers of answer options, chosen by the user. User can choose more than 1 answer option only is the poll allows multiple answers.public int getConstructor()
getConstructor
in class TdApi.Function