InputMessagePoll class

Inheritance

Constructors

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

Properties

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

Methods

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

Operators

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

Constants

CONSTRUCTOR → const String
'inputMessagePoll'