Fix stutter
This commit is contained in:
parent
b206661b37
commit
bc2b82cb33
@ -23,7 +23,7 @@ func main() {
|
||||
|
||||
conf.Parse()
|
||||
|
||||
m := messenger.New(messenger.MessengerOptions{
|
||||
m := messenger.New(messenger.Options{
|
||||
Verify: *verify,
|
||||
VerifyToken: *verifyToken,
|
||||
Token: *pageToken,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user