From 354f45a393ca9380e19e76b3dc53b10118253075 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Fri, 21 Mar 2025 13:46:57 +0300 Subject: [PATCH] add reactions to MessageInfo --- go.mod | 7 +++++-- receiving.go | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 02b5579..18da7b6 100644 --- a/go.mod +++ b/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 ) diff --git a/receiving.go b/receiving.go index b343993..5104653 100644 --- a/receiving.go +++ b/receiving.go @@ -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"`