InputMediaLuggage class
It helps creating an Input Media for TelegramAPIs. For example you can find it useful when sending a sendMediaGroup. For now sendMediaGroup accepts only photos and videos.
Constructors
- InputMediaLuggage.withAnimation({required Luggage animation, String? caption, ParseMode? parseMode, Luggage? thumb, int? width, int? height, Duration? duration})
-
Create an InputMedia with an Animation.
factory
- InputMediaLuggage.withAudio({required Luggage audio, String? caption, ParseMode? parseMode, Luggage? thumb, Duration? duration, String? performer, String? title})
-
Create an InputMedia with an Audio.
factory
- InputMediaLuggage.withDocument({required Luggage document, String? caption, ParseMode? parseMode, Luggage? thumb})
-
Create an InputMedia with a Document.
factory
- InputMediaLuggage.withPhoto({required Luggage photo, String? caption, ParseMode? parseMode})
-
Create an InputMedia with a Photo.
factory
- InputMediaLuggage.withVideo({required Luggage video, String? caption, ParseMode? parseMode, Luggage? thumb, int? width, int? height, Duration? duration, bool? supportsStreaming})
-
Create an InputMedia with a Video.
factory
Properties
-
file
→ MapEntry<
String, MultipartFile> ? -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- media → InputMedia
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
thumb
→ MapEntry<
String, MultipartFile> ? -
no setter
- type → String
-
no setter
Methods
-
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