Class: Line::Bot::Event::Message Deprecated

Inherits:
Base
  • Object
show all
Defined in:
lib/line/bot/v1/event/message.rb

Overview

Deprecated.

This is deprecated. Please use V2::Webhook::MessageContent instead.

Webhook event object which contains the sent message.

developers.line.biz/en/reference/messaging-api/#message-event

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize, #to_hash

Constructor Details

This class inherits a constructor from Line::Bot::Event::Base

Instance Method Details

#messageObject



45
46
47
# File 'lib/line/bot/v1/event/message.rb', line 45

def message
  @src['message']
end

#typeObject



39
40
41
42
43
# File 'lib/line/bot/v1/event/message.rb', line 39

def type
  MessageType.const_get(@src['message']['type'].capitalize)
rescue NameError => e
  MessageType::Unsupport
end