Class: Telegrammer::DataTypes::Voice

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

Overview

Telegram Voice data type

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

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



11
12
13
# File 'lib/telegrammer/data_types/voice.rb', line 11

def duration
  @duration
end

#file_idString

Unique file identifier

Returns:

  • (String)

    the current value of file_id



11
12
13
# File 'lib/telegrammer/data_types/voice.rb', line 11

def file_id
  @file_id
end

#file_sizeString

Optional. File size

Returns:

  • (String)

    the current value of file_size



11
12
13
# File 'lib/telegrammer/data_types/voice.rb', line 11

def file_size
  @file_size
end

#mime_typeString

Optional. Mime type of a file as defined by sender

Returns:

  • (String)

    the current value of mime_type



11
12
13
# File 'lib/telegrammer/data_types/voice.rb', line 11

def mime_type
  @mime_type
end