Class TdApi.LinkPreviewTypeExternalAudio

Enclosing class:
TdApi

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

    • url

      public String url
      URL of the audio file.
    • mimeType

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

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

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • LinkPreviewTypeExternalAudio

      public LinkPreviewTypeExternalAudio()
      The link is a link to an audio file.
    • LinkPreviewTypeExternalAudio

      public LinkPreviewTypeExternalAudio(String url, String mimeType, int duration)
      The link is a link to an audio file.
      Parameters:
      url - URL of the audio file.
      mimeType - MIME type of the audio file.
      duration - Duration of the audio, in seconds; 0 if unknown.
  • 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