1
0
mirror of synced 2024-11-22 04:46:05 +03:00
messenger/actions.go

27 lines
891 B
Go
Raw Normal View History

2016-04-13 09:14:23 +03:00
package messenger
2016-04-14 02:47:15 +03:00
// Action is used to determine what kind of message a webhook event is.
2016-04-13 09:14:23 +03:00
type Action int
const (
2016-04-14 02:47:15 +03:00
// UnknownAction means that the event was not able to be classified.
2016-04-13 09:14:23 +03:00
UnknownAction Action = iota - 1
2016-04-14 02:47:15 +03:00
// TextAction means that the event was a text message (May contain attachments).
2016-04-13 09:14:23 +03:00
TextAction
// DeliveryAction means that the event was advising of a successful delivery to a
// previous recipient.
2016-04-13 12:12:23 +03:00
DeliveryAction
// ReadAction means that the event was a previous recipient reading their respective
// messages.
ReadAction
// PostBackAction represents post call back.
PostBackAction
// OptInAction represents opting in through the Send to Messenger button.
OptInAction
// ReferralAction represents ?ref parameter in m.me URLs.
ReferralAction
2018-03-10 12:12:35 +03:00
// AccountLinkingAction means that the event concerns changes in account linking
// status.
AccountLinkingAction
2016-04-13 09:14:23 +03:00
)