java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Update
it.tdlight.jni.TdApi.UpdatePollAnswer
- Enclosing class:
- TdApi
A user changed the answer to a poll; for bots only.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.int[]
0-based identifiers of answer options, chosen by the user.long
Unique poll identifier.Identifier of the message sender that changed the answer to the poll. -
Constructor Summary
ConstructorDescriptionA user changed the answer to a poll; for bots only.UpdatePollAnswer
(long pollId, TdApi.MessageSender voterId, int[] optionIds) A user changed the answer to a poll; for bots only.UpdatePollAnswer
(DataInput input) A user changed the answer to a poll; for bots only. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
pollId
public long pollIdUnique poll identifier. -
voterId
Identifier of the message sender that changed the answer to the poll. -
optionIds
public int[] optionIds0-based identifiers of answer options, chosen by the user. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
UpdatePollAnswer
public UpdatePollAnswer()A user changed the answer to a poll; for bots only. -
UpdatePollAnswer
A user changed the answer to a poll; for bots only.- Parameters:
pollId
- Unique poll identifier.voterId
- Identifier of the message sender that changed the answer to the poll.optionIds
- 0-based identifiers of answer options, chosen by the user.
-
UpdatePollAnswer
A user changed the answer to a poll; for bots only.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-