Package org.drinkless.tdlib
Class TdApi.MessagePoll
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageContent
org.drinkless.tdlib.TdApi.MessagePoll
- Enclosing class:
TdApi
A message with a poll.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.MessageContent
TdApi.MessageContent.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanTrue, if an option can be added to the poll using addPollOption.static final intIdentifier uniquely determining type of the object.Description of the poll.Media attached to the poll; may be null if none.Information about the poll. -
Constructor Summary
ConstructorsConstructorDescriptionA message with a poll.MessagePoll(TdApi.Poll poll, TdApi.FormattedText description, TdApi.MessageContent media, boolean canAddOption) A message with a poll. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
poll
Information about the poll. -
description
Description of the poll. -
media
Media attached to the poll; may be null if none. If present, currently, can be only of the types messageAnimation, messageAudio, messageDocument, messageLocation, messagePhoto, messageVenue, or messageVideo without caption. -
canAddOption
public boolean canAddOptionTrue, if an option can be added to the poll using addPollOption. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessagePoll
public MessagePoll()A message with a poll. -
MessagePoll
public MessagePoll(TdApi.Poll poll, TdApi.FormattedText description, TdApi.MessageContent media, boolean canAddOption) A message with a poll.- Parameters:
poll- Information about the poll.description- Description of the poll.media- Media attached to the poll; may be null if none. If present, currently, can be only of the types messageAnimation, messageAudio, messageDocument, messageLocation, messagePhoto, messageVenue, or messageVideo without caption.canAddOption- True, if an option can be added to the poll using addPollOption.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.MessageContent- Returns:
- this.CONSTRUCTOR
-