add reactions to MessageInfo
This commit is contained in:
parent
8178ac8b66
commit
354f45a393
2 changed files with 7 additions and 2 deletions
7
go.mod
7
go.mod
|
@ -1,8 +1,11 @@
|
|||
module github.com/retailcrm/messenger
|
||||
|
||||
require (
|
||||
github.com/stretchr/testify v1.2.2
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/stretchr/testify v1.2.2
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
|
||||
)
|
||||
|
|
|
@ -35,6 +35,8 @@ type MessageInfo struct {
|
|||
// Delivery is the contents of a message if it is a DeliveryAction.
|
||||
// Nil if it is not a DeliveryAction.
|
||||
Delivery *Delivery `json:"delivery"`
|
||||
// Reaction represents reaction to Instagram message.
|
||||
Reaction *IGMessageReaction `json:"reaction,omitempty"`
|
||||
|
||||
PostBack *PostBack `json:"postback"`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue