Add documentation of actions
This commit is contained in:
parent
99cd5dc258
commit
f98f5920a3
@ -1,9 +1,14 @@
|
|||||||
package messenger
|
package messenger
|
||||||
|
|
||||||
|
// Action is used to determine what kind of message a webhook event is.
|
||||||
type Action int
|
type Action int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// UnknownAction means that the event was not able to be classified.
|
||||||
UnknownAction Action = iota - 1
|
UnknownAction Action = iota - 1
|
||||||
|
// TextAction means that the event was a text message (May contain attachments).
|
||||||
TextAction
|
TextAction
|
||||||
|
// DeliveryAction means that the event was a previous recipient reading their respective
|
||||||
|
// messages.
|
||||||
DeliveryAction
|
DeliveryAction
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user