diff --git a/main.go b/main.go index 54f31bd3..58ce8d11 100644 --- a/main.go +++ b/main.go @@ -58,7 +58,7 @@ func callbackHandler(w http.ResponseWriter, r *http.Request) { } // message.ID: Msg unique ID // message.Text: Msg text - if _, err = bot.ReplyMessage(event.ReplyToken, linebot.NewTextMessage(message.ID+":"+message.Text+" OK! remain message:"+strconv.FormatInt(quota.Value, 10))).Do(); err != nil { + if _, err = bot.ReplyMessage(event.ReplyToken, linebot.NewTextMessage("msg ID:"+message.ID+":"+"Get:"+message.Text+" , \n OK! remain message:"+strconv.FormatInt(quota.Value, 10))).Do(); err != nil { log.Print(err) } diff --git a/vendor/github.com/line/line-bot-sdk-go/v7/linebot/event.go b/vendor/github.com/line/line-bot-sdk-go/v7/linebot/event.go index 2816cbd8..81da7a27 100644 --- a/vendor/github.com/line/line-bot-sdk-go/v7/linebot/event.go +++ b/vendor/github.com/line/line-bot-sdk-go/v7/linebot/event.go @@ -405,6 +405,7 @@ func (e *Event) MarshalJSON() ([]byte, error) { StickerID: m.StickerID, StickerResourceType: m.StickerResourceType, Keywords: m.Keywords, + Text: m.Text, } } return json.Marshal(&raw) @@ -472,6 +473,7 @@ func (e *Event) UnmarshalJSON(body []byte) (err error) { StickerID: rawEvent.Message.StickerID, StickerResourceType: rawEvent.Message.StickerResourceType, Keywords: rawEvent.Message.Keywords, + Text: rawEvent.Message.Text, } } case EventTypePostback: