1
0
Fork 0
mirror of synced 2025-04-08 03:22:07 +00:00
Package messenger is used for making bots for use with Facebook messenger
Find a file
Bruce Fitzsimons de3a5d0949 Add Read event support. Update description of Delivered events (#7)
* Added Read message support
Delivered message suppport already existed but was commented as
indicating that a message was read by a user. As of the 1 July
2016 API release this isn't true, there is another event. This
commit adds read event support and corrects the description of
delivered events. Also added to the example bot.

* go fmt

* Added new profile fields from July 1st API update

* gofmt
2016-08-18 09:41:25 +10:00
cmd/bot Add Read event support. Update description of Delivered events (#7) 2016-08-18 09:41:25 +10:00
.gitignore Add handling receiving messages 2016-04-13 16:14:23 +10:00
actions.go Add Read event support. Update description of Delivered events (#7) 2016-08-18 09:41:25 +10:00
LICENSE Initial commit 2016-04-13 10:35:25 +10:00
message.go Add Read event support. Update description of Delivered events (#7) 2016-08-18 09:41:25 +10:00
messenger.go Add Read event support. Update description of Delivered events (#7) 2016-08-18 09:41:25 +10:00
profile.go Add Read event support. Update description of Delivered events (#7) 2016-08-18 09:41:25 +10:00
README.md Fix formatting 2016-05-20 09:31:15 +10:00
receiving.go Add Read event support. Update description of Delivered events (#7) 2016-08-18 09:41:25 +10:00
response.go Add Replies feature (#5) 2016-07-08 23:49:35 +10:00

Messenger GoDoc

This is a Go library for making bots to be used on Facebook messenger. It is built on the Messenger Platform. One of the main goals of the project is to implement it in an idiomatic and easy to use fashion.

You can find an example of how to use it here

Tips

  • Follow the quickstart guide for getting everything set up!
  • You need a Facebook development app, and a Facebook page in order to build things.
  • Use ngrok to tunnel your locally runnning bot so that Facebook can reach the webhook.

Breaking Changes

paked/messenger is a pretty stable library however, changes will be made which might break backwards compatibility. For the convenience of its users, these are documented here.

  • 20/5/16: Leaving the WebhookURL field blank in Options will yield a URL of "/" instead of a panic.
  • 4/5/16: The URL to use for the webhook is changable in the Options struct.

Inspiration

Messenger takes design cues from: