Class: Telegrammer::DataTypes::Audio

Inherits:
Base
  • Object
show all
Defined in:
lib/telegrammer/data_types/audio.rb

Overview

Telegram Audio data type

See more at core.telegram.org/bots/api#audio

Instance Attribute Summary collapse

Instance Attribute Details

#durationInteger

Duration of the audio in seconds as defined by sender

Returns:

  • (Integer)

    the current value of duration



13
14
15
# File 'lib/telegrammer/data_types/audio.rb', line 13

def duration
  @duration
end

#file_idString

Unique identifier for this file

Returns:

  • (String)

    the current value of file_id



13
14
15
# File 'lib/telegrammer/data_types/audio.rb', line 13

def file_id
  @file_id
end

#file_sizeInteger

Optional. File size

Returns:

  • (Integer)

    the current value of file_size



13
14
15
# File 'lib/telegrammer/data_types/audio.rb', line 13

def file_size
  @file_size
end

#mime_typeString

Optional. MIME type of the file as defined by sender

Returns:

  • (String)

    the current value of mime_type



13
14
15
# File 'lib/telegrammer/data_types/audio.rb', line 13

def mime_type
  @mime_type
end

#performerString

Optional. Performer of the audio as defined by sender or by audio tags

Returns:

  • (String)

    the current value of performer



13
14
15
# File 'lib/telegrammer/data_types/audio.rb', line 13

def performer
  @performer
end

#titleString

Optional. Title of the audio as defined by sender or by audio tags

Returns:

  • (String)

    the current value of title



13
14
15
# File 'lib/telegrammer/data_types/audio.rb', line 13

def title
  @title
end