Package org.drinkless.tdlib
Class TdApi.InputPollOption
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InputPollOption
- Enclosing class:
TdApi
Describes one answer option of a poll to be created.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.Option media; pass null if none; ignored in addPollOption.Option text; 1-100 characters. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes one answer option of a poll to be created.InputPollOption(TdApi.FormattedText text, TdApi.InputMessageContent media) Describes one answer option of a poll to be created. -
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
-
text
Option text; 1-100 characters. Only custom emoji entities are allowed to be added and only by Premium users. -
media
Option media; pass null if none; ignored in addPollOption. Must be one of the following types: inputMessageAnimation, non-live inputMessageLocation, inputMessagePhoto, inputMessageSticker, inputMessageVenue, or inputMessageVideo without caption. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InputPollOption
public InputPollOption()Describes one answer option of a poll to be created. -
InputPollOption
Describes one answer option of a poll to be created.- Parameters:
text- Option text; 1-100 characters. Only custom emoji entities are allowed to be added and only by Premium users.media- Option media; pass null if none; ignored in addPollOption. Must be one of the following types: inputMessageAnimation, non-live inputMessageLocation, inputMessagePhoto, inputMessageSticker, inputMessageVenue, or inputMessageVideo without caption.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-