diff --git a/cmd/bot/main.go b/cmd/bot/main.go index 23d4e9d..5661186 100644 --- a/cmd/bot/main.go +++ b/cmd/bot/main.go @@ -23,7 +23,7 @@ func main() { conf.Parse() - m := messenger.New(messenger.MessengerOptions{ + m := messenger.New(messenger.Options{ Verify: *verify, VerifyToken: *verifyToken, Token: *pageToken, diff --git a/messenger.go b/messenger.go index b91e1cf..3dd3856 100644 --- a/messenger.go +++ b/messenger.go @@ -12,8 +12,8 @@ const ( WebhookURL = "/webhook" ) -// MessengerOptions are the settings used when creating a Messenger client. -type MessengerOptions struct { +// Options are the settings used when creating a Messenger client. +type Options struct { // Verify sets whether or not to be in the "verify" mode. Used for // verifying webhooks on the Facebook Developer Portal. Verify bool @@ -38,8 +38,8 @@ type Messenger struct { token string } -// New creates a new Messenger. You pass in MessengerOptions in order to affect settings. -func New(mo MessengerOptions) *Messenger { +// New creates a new Messenger. You pass in Options in order to affect settings. +func New(mo Options) *Messenger { m := &Messenger{ mux: http.NewServeMux(), token: mo.Token,