InputMessageAudio class final

An audio message

Inheritance

Constructors

InputMessageAudio({required InputFile audio, InputThumbnail? albumCoverThumbnail, required int duration, required String title, required String performer, FormattedText? caption})
An audio message
const
InputMessageAudio.fromJson(Map<String, dynamic> json)
Parses a InputMessageAudio from TDLib JSON.
factory

Properties

albumCoverThumbnail → InputThumbnail?
Thumbnail of the cover for the album; pass null to skip thumbnail uploading
final
audio → InputFile
Audio file to be sent
final
caption → FormattedText?
Audio caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
duration → int
Duration of the audio, in seconds; may be replaced by the server
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
performer → String
Performer of the audio; 0-64 characters, may be replaced by the server
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
Title of the audio; 0-64 characters; may be replaced by the server
final

Methods

copyWith({InputFile? audio, InputThumbnail? albumCoverThumbnail()?, int? duration, String? title, String? performer, FormattedText? caption()?}) → InputMessageAudio
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.