InputMediaAnimation class

Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.

https://core.telegram.org/bots/api#inputmediaanimation

Implemented types
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

InputMediaAnimation({String type = InputMedia.typeAnimation, required String media, String? thumbnail, String? caption, String? parseMode, List<MessageEntity>? captionEntities, int? width, int? height, int? duration, bool? hasSpoiler})
InputMediaAnimation.fromFile({required File media, String? thumbnail, String? caption, String? parseMode, List<MessageEntity>? captionEntities, int? width, int? height, int? duration, bool? hasSpoiler})
factory
InputMediaAnimation.fromFileWithThumbnailFile({required File media, required File thumbnail, String? caption, String? parseMode, List<MessageEntity>? captionEntities, int? width, int? height, int? duration, bool? hasSpoiler})
factory
InputMediaAnimation.fromJson(Map<String, dynamic> json)
factory
InputMediaAnimation.withThumbnailFile({required String media, required File thumbnail, String? caption, String? parseMode, List<MessageEntity>? captionEntities, int? width, int? height, int? duration, bool? hasSpoiler})
factory

Properties

caption String?
getter/setter pairoverride
captionEntities List<MessageEntity>?
getter/setter pairoverride
duration int?
getter/setter pair
duration_ Duration?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasSpoiler bool?
getter/setter pair
height int?
getter/setter pair
media String
getter/setter pairoverride
mediaFile ↔ MultipartFile?
getter/setter pairoverride
parseMode String?
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnail String?
getter/setter pairoverride
thumbnailFile ↔ MultipartFile?
getter/setter pairoverride
type String
getter/setter pairoverride
width int?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited