InputMessagePoll constructor

const InputMessagePoll({
  1. required String question,
  2. required List<String> options,
  3. required bool isAnonymous,
  4. required PollType type,
  5. required int openPeriod,
  6. required int closeDate,
  7. required bool isClosed,
})

A message with a poll. Polls can't be sent to secret chats. Polls can be sent only to a private chat with a bot

Implementation

const InputMessagePoll({
  required this.question,
  required this.options,
  required this.isAnonymous,
  required this.type,
  required this.openPeriod,
  required this.closeDate,
  required this.isClosed,
});