Class: TD::Types::LinkPreviewType::Audio

Inherits:
TD::Types::LinkPreviewType show all
Defined in:
lib/tdlib/types/link_preview_type/audio.rb

Overview

The link is a link to an audio.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#audioTD::Types::Audio?

The audio description; may be null if unknown.

Returns:



9
10
11
# File 'lib/tdlib/types/link_preview_type/audio.rb', line 9

def audio
  @audio
end

#authorTD::Types::String

Author of the audio.

Returns:

  • (TD::Types::String)

    the current value of author



9
10
11
# File 'lib/tdlib/types/link_preview_type/audio.rb', line 9

def author
  @author
end

#durationInteger

Duration of the audio, in seconds; 0 if unknown.

Returns:

  • (Integer)

    the current value of duration



9
10
11
# File 'lib/tdlib/types/link_preview_type/audio.rb', line 9

def duration
  @duration
end

#mime_typeTD::Types::String

MIME type of the audio file.

Returns:

  • (TD::Types::String)

    the current value of mime_type



9
10
11
# File 'lib/tdlib/types/link_preview_type/audio.rb', line 9

def mime_type
  @mime_type
end

#urlTD::Types::String?

URL of the audio; may be empty if none.

Returns:

  • (TD::Types::String, nil)

    the current value of url



9
10
11
# File 'lib/tdlib/types/link_preview_type/audio.rb', line 9

def url
  @url
end