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; pass null to skip thumbnail uploading.

Returns:



12
13
14
# File 'lib/tdlib/types/input_message_content/audio.rb', line 12

def album_cover_thumbnail
  @album_cover_thumbnail
end

#audioTD::Types::InputFile

Audio file to be sent.

Returns:



12
13
14
# File 'lib/tdlib/types/input_message_content/audio.rb', line 12

def audio
  @audio
end

#captionTD::Types::FormattedText

Audio caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.

Returns:



12
13
14
# File 'lib/tdlib/types/input_message_content/audio.rb', line 12

def caption
  @caption
end

#durationInteger

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

Returns:

  • (Integer)

    the current value of duration



12
13
14
# File 'lib/tdlib/types/input_message_content/audio.rb', line 12

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



12
13
14
# File 'lib/tdlib/types/input_message_content/audio.rb', line 12

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



12
13
14
# File 'lib/tdlib/types/input_message_content/audio.rb', line 12

def title
  @title
end