Class: TD::Types::LinkPreviewType::EmbeddedAudioPlayer

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

Overview

The link is a link to an audio player.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#authorTD::Types::String

Author of the audio.

Returns:

  • (TD::Types::String)

    the current value of author



10
11
12
# File 'lib/tdlib/types/link_preview_type/embedded_audio_player.rb', line 10

def author
  @author
end

#durationInteger

Duration of the audio, in seconds.

Returns:

  • (Integer)

    the current value of duration



10
11
12
# File 'lib/tdlib/types/link_preview_type/embedded_audio_player.rb', line 10

def duration
  @duration
end

#heightInteger

Expected height of the embedded player.

Returns:

  • (Integer)

    the current value of height



10
11
12
# File 'lib/tdlib/types/link_preview_type/embedded_audio_player.rb', line 10

def height
  @height
end

#thumbnailTD::Types::Photo?

Thumbnail of the audio; may be null if unknown.

Returns:



10
11
12
# File 'lib/tdlib/types/link_preview_type/embedded_audio_player.rb', line 10

def thumbnail
  @thumbnail
end

#urlTD::Types::String

URL of the external audio player.

Returns:

  • (TD::Types::String)

    the current value of url



10
11
12
# File 'lib/tdlib/types/link_preview_type/embedded_audio_player.rb', line 10

def url
  @url
end

#widthInteger

Expected width of the embedded player.

Returns:

  • (Integer)

    the current value of width



10
11
12
# File 'lib/tdlib/types/link_preview_type/embedded_audio_player.rb', line 10

def width
  @width
end