Class TdApi.LinkPreviewTypeAudio

Enclosing class:
TdApi

public static class TdApi.LinkPreviewTypeAudio extends TdApi.LinkPreviewType
The link is a link to an audio.
  • Field Details

    • url

      public String url
      URL of the audio; may be empty if none.
    • mimeType

      public String mimeType
      MIME type of the audio file.
    • audio

      public TdApi.Audio audio
      The audio description; may be null if unknown.
    • duration

      public int duration
      Duration of the audio, in seconds; 0 if unknown.
    • author

      public String author
      Author of the audio.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR