InputMessagePoll constructor

InputMessagePoll({
  1. FormattedText? question,
  2. required List<InputPollOption> options,
  3. FormattedText? description,
  4. InputPollMedia? media,
  5. required bool isAnonymous,
  6. required bool allowsMultipleAnswers,
  7. required bool allowsRevoting,
  8. required bool membersOnly,
  9. required List<String> countryCodes,
  10. required bool shuffleOptions,
  11. required bool hideResultsUntilCloses,
  12. InputPollType? type,
  13. required int openPeriod,
  14. required int closeDate,
  15. bool? isClosed,
})

Implementation

InputMessagePoll({
  this.question,
  required this.options,
  this.description,
  this.media,
  required this.isAnonymous,
  required this.allowsMultipleAnswers,
  required this.allowsRevoting,
  required this.membersOnly,
  required this.countryCodes,
  required this.shuffleOptions,
  required this.hideResultsUntilCloses,
  this.type,
  required this.openPeriod,
  required this.closeDate,
  this.isClosed,
});