- Webhooks that don't have messaging will now be ignored rather than crash.
- Refactored use of
dig
for compatibility with Ruby < 2.3.
reply
andtype
are now available on any incoming entry (such as messages or postbacks).- With the introduction of configuration providers, bots may now be installed to multiple Facebook Pages.
Incoming::Message
now has anecho?
method which returns a boolean describing whether the message was an echo.
Bot.deliver
now requires a keyword argumentaccess_token
.Facebook::Messenger.configuration.verify_token
,app_secret
andaccess_token
are replaced by configuration providers.
- Fixed a bug that caused
Message.quick_replies
to crash when a quick reply wasn't used.
Message.quick_replies
is nowMessage.quick_reply
.
- Quick replies.
- Account linking.
- Fixed a bug that caused
read
to be ignored.
Incoming::Message
now has arecipient
method for consistency.- Thread settings for welcome messages and persistent menu.
- Welcome messages (these are now thread settings).
- Welcome messages.
- Support for read messages (although it isn't documented yet, Facebook is known to send these).
- Fix an issue that would crash the bot when Facebook neglects to send the
X-Hub-Signature
header. This will now fail with a warning and prompt Facebook to retry.
- You may now verify that the message is from Facebook by
configuring
app_secret
. - Support for Rack 2.
- Support for receiving attachments from the user.
- Fix a bug that caused
Subscriptions.subscribe
andSubscriptions.unsubscribe
to not raise errors.
- Fix a bug that caused
Bot.deliver
to return'message_id'
for successful deliveries andnil
for unsuccessful deliveries instead of a message ID or appropriate exceptions.
- Support for threaded servers.
- Fix a bug that caused a
NoMethodError
with no hooks at all.
- Add support for optins.
- Fix a bug that prevented registering postbacks.
- Everything!
- Nothing; release an empty codebase to snag the name.