InputMessagePoll class



InputMessagePoll({String question, List<String> options, bool isAnonymous, PollType type, int openPeriod, int closeDate, 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
InputMessagePoll.fromJson(Map<String, dynamic> json)
Parse from a json


closeDate int
closeDate Point in time (Unix timestamp) when the poll will be automatically closed; for bots only
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
isAnonymous bool
isAnonymous True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels
read / write
isClosed bool
isClosed True, if the poll needs to be sent already closed; for bots only
read / write
openPeriod int
openPeriod Amount of time the poll will be active after creation, in seconds; for bots only
read / write
options List<String>
options List of poll answer options, 2-10 strings 1-100 characters each
read / write
question String
question Poll question, 1-255 characters (up to 300 characters for bots)
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type PollType
type Type of the poll
read / write


getConstructor() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]


CONSTRUCTOR → const String