InputMedia class abstract
This object represents the content of a media message to be sent. It should be one of
Constructors
- InputMedia({required InputFile media})
-
Creates a new InputMedia object.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- media → InputFile
-
File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),
pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>"
to upload a new one using multipart/form-data under <file_attach_name> name.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → InputMediaType
-
Type of the result.
no setter
Methods
-
getValue(
[String? field, String? thumb]) → Map< String, dynamic> - Converts a InputMedia to a Map for JSON encoding.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited