Class TdApi.AddPollOption

Enclosing class:
TdApi

public static class TdApi.AddPollOption extends TdApi.Function<TdApi.Ok>
Adds an option to a poll.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Identifier of the chat to which the poll belongs.
    • messageId

      public long messageId
      Identifier of the message containing the poll. Use messagePoll.canAddOption to check whether an option can be added.
    • option

      public TdApi.InputPollOption option
      The new option.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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

      public AddPollOption(long chatId, long messageId, TdApi.InputPollOption option)
      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.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Function<TdApi.Ok>
      Returns:
      this.CONSTRUCTOR