Class: Bobot::Event::MessageEcho

Inherits:
Message
  • Object
show all
Defined in:
lib/bobot/events/message_echo.rb

Constant Summary

Constants inherited from Message

Bobot::Event::Message::ATTACHMENT_TYPES

Instance Attribute Summary

Attributes included from Common

#delay_options, #messaging, #payloads_sent

Instance Method Summary collapse

Methods inherited from Message

#app_id, #attachment_type, #attachment_url, #attachments, #echo?, #id, #location_coordinates, #nlp, #quick_reply, #seq, #text

Methods included from Common

#add_delivery, #delay, #deliver, #initialize, #mark_as_seen, #recipient, #reply, #reply_with_attachment, #reply_with_audio, #reply_with_buttons, #reply_with_file, #reply_with_generic, #reply_with_image, #reply_with_quick_replies, #reply_with_text, #reply_with_video, #sender, #sender_action, #sent_at, #show_typing

Instance Method Details

#access_tokenObject



4
5
6
# File 'lib/bobot/events/message_echo.rb', line 4

def access_token
  Bobot.config.find_page_by_id(sender["id"]).try(:page_access_token)
end