1
0
Fork 0
mirror of synced 2025-04-01 20:26:10 +03:00

add reactions to MessageInfo

This commit is contained in:
Pavel 2025-03-21 13:46:57 +03:00
parent 8178ac8b66
commit 354f45a393
2 changed files with 7 additions and 2 deletions

7
go.mod
View file

@ -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
)

View file

@ -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"`