Class: Facebook::Messenger::Incoming::MessageRequest
- Defined in:
- lib/facebook/messenger/incoming/message_request.rb
Overview
The Message request class represents an incoming Facebook Messenger message request accepted by the user
Constant Summary
Constants inherited from Message
Facebook::Messenger::Incoming::Message::ATTACHMENT_TYPES
Instance Attribute Summary
Attributes included from Common
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
#access_token, #app_secret_proof, #initialize, #mark_seen, #prior_message, #recipient, #reply, #sender, #sent_at, #typing_off, #typing_on
Instance Method Details
#accept? ⇒ Boolean
7 8 9 |
# File 'lib/facebook/messenger/incoming/message_request.rb', line 7 def accept? @messaging['message_request'] == 'accept' end |