de3a5d0949
* Added Read message support Delivered message suppport already existed but was commented as indicating that a message was read by a user. As of the 1 July 2016 API release this isn't true, there is another event. This commit adds read event support and corrects the description of delivered events. Also added to the example bot. * go fmt * Added new profile fields from July 1st API update * gofmt
20 lines
611 B
Go
20 lines
611 B
Go
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
|
|
)
|