1
0
mirror of synced 2024-11-24 13:56:06 +03:00
Package messenger is used for making bots for use with Facebook messenger
Go to file
2019-07-31 00:38:58 +03:00
examples Fixed staticcheck warnings 2019-07-25 14:37:27 +03:00
.gitignore Support for passThreadControl 2019-03-25 11:42:34 -07:00
.travis.yml Try to build examples from travis job 2018-03-18 20:55:41 +01:00
actions.go Add handler for AccountLinking process 2018-03-18 20:42:28 +01:00
go.mod Wrapped errors with xerrors 2019-07-31 00:38:58 +03:00
go.sum Wrapped errors with xerrors 2019-07-31 00:38:58 +03:00
LICENSE Initial commit 2016-04-13 10:35:25 +10:00
message.go Get NLP 2019-03-25 11:48:35 -07:00
messenger_test.go Fixed staticcheck warnings 2019-07-25 14:37:27 +03:00
messenger.go Wrapped errors with xerrors 2019-07-31 00:38:58 +03:00
pass_thread_control.go Fixed staticcheck warnings 2019-07-25 14:37:27 +03:00
profile.go change the default user profile fields; fix minor typo 2018-12-30 13:37:18 +01:00
README.md Update README.md 2019-01-05 09:58:27 +11:00
receiving.go add attachment.fallback json fields 2019-02-22 18:16:14 +02:00
response.go Wrapped errors with xerrors 2019-07-31 00:38:58 +03:00
settings.go feat: EnableChatExtension 2018-11-22 11:43:25 +01:00

Messenger GoDoc Build Status

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 examples for this library here.

We tag our releases Semver style.

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 running bot so that Facebook can reach the webhook.

Breaking Changes

In January 2019 we began tagging releases so that the package could be used properly with Go modules. Prior to that we simply maintained the following list to help users migrate between versions, it's staying here for legacy reasons. From now on, however, you should find breaking changes in the notes of a new release.

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.

  • 06/2/18: Added messaging_type field for message send API request as it is required by FB
  • 23/1/17: Updating timezone type to float64 in profile struct
  • 12/9/16: Removing unused parameter text string from function (r *Response) GenericTemplate.
  • 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:

Projects

This is a list of projects use messenger. If you would like to add your own, submit a Pull Request adding it below.

  • meme-maker by @paked: A bot which, given a photo and a caption, will create a macro meme.
  • drone-facebook by @appleboy: Drone.io plugin which sends Facebook notifications