public static class TdApi.InputMessageAudio extends TdApi.InputMessageContent
TdApi.InputMessageContent.Constructors
Modifier and Type | Field and Description |
---|---|
TdApi.InputThumbnail |
albumCoverThumbnail
Thumbnail of the cover for the album; pass null to skip thumbnail uploading.
|
TdApi.InputFile |
audio
Audio file to be sent.
|
TdApi.FormattedText |
caption
Audio caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
duration
Duration of the audio, in seconds; may be replaced by the server.
|
java.lang.String |
performer
Performer of the audio; 0-64 characters, may be replaced by the server.
|
java.lang.String |
title
Title of the audio; 0-64 characters; may be replaced by the server.
|
Constructor and Description |
---|
InputMessageAudio()
An audio message.
|
InputMessageAudio(TdApi.InputFile audio,
TdApi.InputThumbnail albumCoverThumbnail,
int duration,
java.lang.String title,
java.lang.String performer,
TdApi.FormattedText caption)
An audio message.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public TdApi.InputFile audio
public TdApi.InputThumbnail albumCoverThumbnail
public int duration
public java.lang.String title
public java.lang.String performer
public TdApi.FormattedText caption
public static final int CONSTRUCTOR
public InputMessageAudio()
public InputMessageAudio(TdApi.InputFile audio, TdApi.InputThumbnail albumCoverThumbnail, int duration, java.lang.String title, java.lang.String performer, TdApi.FormattedText caption)
audio
- Audio file to be sent.albumCoverThumbnail
- Thumbnail of the cover for the album; pass null to skip thumbnail uploading.duration
- Duration of the audio, in seconds; may be replaced by the server.title
- Title of the audio; 0-64 characters; may be replaced by the server.performer
- Performer of the audio; 0-64 characters, may be replaced by the server.caption
- Audio caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.public int getConstructor()
getConstructor
in class TdApi.InputMessageContent