InputMessagePoll constructor

InputMessagePoll(
  1. {required String question,
  2. required List<String> options,
  3. required bool is_anonymous,
  4. required PollType type,
  5. required int open_period,
  6. required int close_date,
  7. required bool is_closed,
  8. int? extra,
  9. int? clientId}
)

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

InputMessagePoll