Class: TeBot::Message::Voice

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

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Voice

Returns a new instance of Voice.



155
156
157
# File 'lib/te_bot/message.rb', line 155

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

Instance Method Details

#parseObject



159
160
161
# File 'lib/te_bot/message.rb', line 159

def parse
  @voice
end