Class TdApi.PushMessageContentPoll

    • Field Detail

      • 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:
        Constant Field Values
    • Constructor Detail

      • 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.