Class: TeBot::Message::Audio

Inherits:
Object
  • Object
show all
Defined in:
lib/te_bot/message.rb

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Audio

Returns a new instance of Audio.



145
146
147
# File 'lib/te_bot/message.rb', line 145

def initialize(message)
  @audio = message.dig("audio")
end

Instance Method Details

#parseObject



149
150
151
# File 'lib/te_bot/message.rb', line 149

def parse
  @audio
end