2016-04-13 16:14:23 +10:00
|
|
|
package messenger
|
|
|
|
|
2016-04-14 09:47:15 +10:00
|
|
|
// Action is used to determine what kind of message a webhook event is.
|
2016-04-13 16:14:23 +10:00
|
|
|
type Action int
|
|
|
|
|
|
|
|
const (
|
2016-04-14 09:47:15 +10:00
|
|
|
// UnknownAction means that the event was not able to be classified.
|
2016-04-13 16:14:23 +10:00
|
|
|
UnknownAction Action = iota - 1
|
2016-04-14 09:47:15 +10:00
|
|
|
// TextAction means that the event was a text message (May contain attachments).
|
2016-04-13 16:14:23 +10:00
|
|
|
TextAction
|
2016-08-18 09:41:25 +10:00
|
|
|
// DeliveryAction means that the event was advising of a successful delivery to a
|
|
|
|
// previous recipient.
|
2016-04-13 19:12:23 +10:00
|
|
|
DeliveryAction
|
2016-08-18 09:41:25 +10:00
|
|
|
// ReadAction means that the event was a previous recipient reading their respective
|
|
|
|
// messages.
|
|
|
|
ReadAction
|
2016-05-04 18:09:34 +10:00
|
|
|
// PostBackAction represents post call back
|
2016-05-03 16:42:25 +03:00
|
|
|
PostBackAction
|
2016-12-08 21:52:21 +01:00
|
|
|
// OptInAction represents opting in through the Send to Messenger button
|
|
|
|
OptInAction
|
2016-04-13 16:14:23 +10:00
|
|
|
)
|