Documentation
¶
Index ¶
- type WebhookService
- func (s *WebhookService) HandleMessage(ctx context.Context, pageID fbmsg.IntID, sender fbmsg.SenderID, ...) error
- func (s *WebhookService) HandlePostback(ctx context.Context, pageID fbmsg.IntID, sender fbmsg.SenderID, ...) error
- func (s *WebhookService) HandleVerification(w http.ResponseWriter, req *http.Request)
- func (s *WebhookService) HandleWebhook(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookService ¶
type WebhookService struct { Client *fbmsg.Client VerifyToken string MessengerService *service.MessengerService }
func NewWebhookService ¶
func NewWebhookService( client *fbmsg.Client, token string, messengerService *service.MessengerService, ) *WebhookService
func (*WebhookService) HandleMessage ¶
func (s *WebhookService) HandleMessage(ctx context.Context, pageID fbmsg.IntID, sender fbmsg.SenderID, msg *fbmsg.MessageData) error
func (*WebhookService) HandlePostback ¶
func (s *WebhookService) HandlePostback(ctx context.Context, pageID fbmsg.IntID, sender fbmsg.SenderID, msg *fbmsg.PostbackData) error
func (*WebhookService) HandleVerification ¶
func (s *WebhookService) HandleVerification(w http.ResponseWriter, req *http.Request)
func (*WebhookService) HandleWebhook ¶
func (s *WebhookService) HandleWebhook(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.