Class TdApi.LinkPreviewTypeAudio
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.LinkPreviewType
dev.voroby.springframework.telegram.client.TdApi.LinkPreviewTypeAudio
- Enclosing class:
- TdApi
The link is a link to an audio.
-
Field Summary
Modifier and TypeFieldDescriptionThe audio description; may be null if unknown.Author of the audio.static final int
Identifier uniquely determining type of the object.int
Duration of the audio, in seconds; 0 if unknown.MIME type of the audio file.URL of the audio; may be empty if none. -
Constructor Summary
ConstructorDescriptionThe link is a link to an audio.LinkPreviewTypeAudio
(String url, String mimeType, TdApi.Audio audio, int duration, String author) The link is a link to an audio. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
url
URL of the audio; may be empty if none. -
mimeType
MIME type of the audio file. -
audio
The audio description; may be null if unknown. -
duration
public int durationDuration of the audio, in seconds; 0 if unknown. -
author
Author of the audio. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
LinkPreviewTypeAudio
public LinkPreviewTypeAudio()The link is a link to an audio. -
LinkPreviewTypeAudio
public LinkPreviewTypeAudio(String url, String mimeType, TdApi.Audio audio, int duration, String author) The link is a link to an audio.- Parameters:
url
- URL of the audio; may be empty if none.mimeType
- MIME type of the audio file.audio
- The audio description; may be null if unknown.duration
- Duration of the audio, in seconds; 0 if unknown.author
- Author of the audio.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-