Package org.drinkless.tdlib
Class TdApi.DeletePollOption
- Enclosing class:
TdApi
Deletes an option from 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.Unique identifier of the option. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which deletes an option from a poll.DeletePollOption(long chatId, long messageId, String optionId) Creates a function, which deletes an option from 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. -
optionId
Unique identifier of the option. Use pollOptionProperties.canBeDeleted to check whether the option can be deleted by the user. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
DeletePollOption
public DeletePollOption()Default constructor for a function, which deletes an option from a poll.Returns
Ok -
DeletePollOption
Creates a function, which deletes an option from a poll.Returns
Ok- Parameters:
chatId- Identifier of the chat to which the poll belongs.messageId- Identifier of the message containing the poll.optionId- Unique identifier of the option. Use pollOptionProperties.canBeDeleted to check whether the option can be deleted by the user.
-
-
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
-