1
0
mirror of synced 2024-11-22 12:56:06 +03:00
messenger/actions.go
Bruce Fitzsimons de3a5d0949 Add Read event support. Update description of Delivered events (#7)
* 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
2016-08-18 09:41:25 +10:00

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
)