-
Notifications
You must be signed in to change notification settings - Fork 19
Usage
jun85664396 edited this page Apr 29, 2016
·
1 revision
###message(event, sender)
-
event
- Hash containing the message event from Facebook format -
sender
- Class to call the 'reply, get_profile' method.
###delivery(event, sender)
-
event
- Hash containing the delivery event from Facebook format -
sender
- Class to call the 'reply, get_profile' method.
###postback(event, sender)
-
event
- Hash containing the postback event from Facebook format -
sender
- Class to call the 'reply, get_profile' method.
This can also be used.
sender = Messenger::Bot::Transmitter.new(sender_id)
sender.reply({ text: "Hello, again!" })
sender.get_profile