Class TdApi.MessagePoll

Enclosing class:
TdApi

public static class TdApi.MessagePoll extends TdApi.MessageContent
A message with a poll.
  • Field Details

    • poll

      public TdApi.Poll poll
      Information about the poll.
    • description

      public TdApi.FormattedText description
      Description of the poll.
    • media

      @Nullable public TdApi.MessageContent 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 canAddOption
      True, if an option can be added to the poll using addPollOption.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.MessageContent
      Returns:
      this.CONSTRUCTOR