Module tdlight.api

Class TdApi.PushMessageContentPoll

Enclosing class:
TdApi

public static final 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
      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 - String Poll question.
      isRegular - boolean True, if the poll is regular and not in quiz mode.
      isPinned - boolean True, if the message is a pinned message with the specified content.
    • PushMessageContentPoll

      public PushMessageContentPoll(DataInput input) throws IOException
      A message with a poll.
      Throws:
      IOException
  • Method Details