class Kamigo::EventResponsers::LineEventResponser
Public Instance Methods
response_event(event, message)
click to toggle source
# File lib/kamigo/event_responsers/line_event_responser.rb, line 6 def response_event(event, message) return nil if message.blank? message = JSON.parse(message) if message.is_a?(String) && (message.start_with?("{") || message.start_with?("[")) return nil if message.blank? response = client.reply_message(event.reply_token, message) response end