InputMessagePoll class
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.
- Inheritance
-
- Object
- TlObject
- InputMessageContent
- InputMessagePoll
- Available Extensions
Constructors
-
InputMessagePoll({required String question, required List<
String> options, required bool is_anonymous, required PollType type, required int open_period, required int close_date, required bool is_closed, int? extra, 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
Properties
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- close_date ↔ int
-
Point in time (Unix timestamp) when the poll will automatically be closed; for bots only.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- is_anonymous ↔ bool
-
True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels.
read / write
- is_closed ↔ bool
-
True, if the poll needs to be sent already closed; for bots only.
read / write
- open_period ↔ int
-
Amount of time the poll will be active after creation, in seconds; for bots only.
read / write
-
options
↔ List<
String> -
List of poll answer options, 2-10 strings 1-100 characters each.
read / write
- question ↔ String
-
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-onlyinherited
- type ↔ PollType
-
Type of the poll.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Object to Map serializer
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? _map) → InputMessagePoll? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"inputMessagePoll"