Class: TD::Types::InputMessageContent::Audio

Inherits:
TD::Types::InputMessageContent show all
Defined in:
lib/tdlib/types/input_message_content/audio.rb

Overview

An audio message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#album_cover_thumbnailTD::Types::InputThumbnail?

Thumbnail of the cover for the album, if available.

Returns:



10
11
12
# File 'lib/tdlib/types/input_message_content/audio.rb', line 10

def album_cover_thumbnail
  @album_cover_thumbnail
end

#audioTD::Types::InputFile

Audio file to be sent.

Returns:



10
11
12
# File 'lib/tdlib/types/input_message_content/audio.rb', line 10

def audio
  @audio
end

#captionTD::Types::FormattedText

Audio caption; 0-GetOption(“message_caption_length_max”) characters.

Returns:



10
11
12
# File 'lib/tdlib/types/input_message_content/audio.rb', line 10

def caption
  @caption
end

#durationInteger

Duration of the audio, in seconds; may be replaced by the server.

Returns:

  • (Integer)

    the current value of duration



10
11
12
# File 'lib/tdlib/types/input_message_content/audio.rb', line 10

def duration
  @duration
end

#performerTD::Types::String

Performer of the audio; 0-64 characters, may be replaced by the server.

Returns:

  • (TD::Types::String)

    the current value of performer



10
11
12
# File 'lib/tdlib/types/input_message_content/audio.rb', line 10

def performer
  @performer
end

#titleTD::Types::String

Title of the audio; 0-64 characters; may be replaced by the server.

Returns:

  • (TD::Types::String)

    the current value of title



10
11
12
# File 'lib/tdlib/types/input_message_content/audio.rb', line 10

def title
  @title
end