Package org.drinkless.tdlib
Class TdApi.AddPollOption
- Enclosing class:
TdApi
Adds an option to a poll.
Returns Ok
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the chat to which the poll belongs.static final intIdentifier uniquely determining type of the object.longIdentifier of the message containing the poll.The new option. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which adds an option to a poll.AddPollOption(long chatId, long messageId, TdApi.InputPollOption option) Creates a function, which adds an option to a poll. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat to which the poll belongs. -
messageId
public long messageIdIdentifier of the message containing the poll. Use messagePoll.canAddOption to check whether an option can be added. -
option
The new option. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AddPollOption
public AddPollOption()Default constructor for a function, which adds an option to a poll.Returns
Ok -
AddPollOption
Creates a function, which adds an option to a poll.Returns
Ok- Parameters:
chatId- Identifier of the chat to which the poll belongs.messageId- Identifier of the message containing the poll. Use messagePoll.canAddOption to check whether an option can be added.option- The new option.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.Ok>- Returns:
- this.CONSTRUCTOR
-