Class TdApi.PushMessageContentPoll

Enclosing class:
TdApi

public static class TdApi.PushMessageContentPoll extends TdApi.PushMessageContent
A message with a poll.
  • Field Details

    • question

      public String question
      Poll question.
    • isRegular

      public boolean isRegular
      True, if the poll is regular and not in quiz mode.
    • isPinned

      public boolean isPinned
      True, if the message is a pinned message with the specified content.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • PushMessageContentPoll

      public PushMessageContentPoll()
      A message with a poll.
    • PushMessageContentPoll

      public PushMessageContentPoll(String question, boolean isRegular, boolean isPinned)
      A message with a poll.
      Parameters:
      question - Poll question.
      isRegular - True, if the poll is regular and not in quiz mode.
      isPinned - True, if the message is a pinned message with the specified content.
  • 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.Object
      Returns:
      this.CONSTRUCTOR