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
- Td
- TdObject
- InputMessageContent
- InputMessagePoll
Constructors
Properties
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- close_date ↔ int32?
-
Point in time (Unix timestamp) when the poll will automatically be closed; for bots only
getter/setter pair
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- is_anonymous ↔ Bool?
-
True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels
getter/setter pair
- is_closed ↔ Bool?
-
True, if the poll needs to be sent already closed; for bots only
getter/setter pair
- open_period ↔ int32?
-
Amount of time the poll will be active after creation, in seconds; for bots only
getter/setter pair
-
options
↔ vector<
string> ? -
List of poll answer options, 2-10 strings 1-100 characters each
getter/setter pair
- question ↔ string?
-
Poll question; 1-255 characters (up to 300 characters for bots)
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
- type ↔ PollType?
-
Type of the poll
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited