InputMessageContent class abstract
This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types:
Constructors
- InputMessageContent()
-
Constructor
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts a InputMessageContent to a Map for JSON encoding.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → InputMessageContent - Creates a new InputMessageContent object from a JSON object. This method decides which InputMessageContent subclass to use based on the fields.