forked from paked/messenger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactions.go
26 lines (24 loc) · 888 Bytes
/
actions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package messenger
// Action is used to determine what kind of message a webhook event is.
type Action int
const (
// UnknownAction means that the event was not able to be classified.
UnknownAction Action = iota - 1
// TextAction means that the event was a text message (May contain attachments).
TextAction
// DeliveryAction means that the event was advising of a successful delivery to a
// previous recipient.
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
// AccountLinkingAction means that the event concerns changes in account linking
// status.
AccountLinkingAction
)