From 145fbcd42ec96a9256e9d91079d6e81d3c40906d Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 10 Sep 2018 21:54:01 +0800 Subject: [PATCH] update --- module/apis/{api_action.go => apis.go} | 0 module/apis/line/line.go | 6 ++++++ 2 files changed, 6 insertions(+) rename module/apis/{api_action.go => apis.go} (100%) diff --git a/module/apis/api_action.go b/module/apis/apis.go similarity index 100% rename from module/apis/api_action.go rename to module/apis/apis.go diff --git a/module/apis/line/line.go b/module/apis/line/line.go index 86ca48e..e40d1eb 100644 --- a/module/apis/line/line.go +++ b/module/apis/line/line.go @@ -63,8 +63,14 @@ func PushMessage(target string, message interface{}) { switch message.(type) { case ImageMessage: + m := (message.(ImageMessage)) + m.Type = "image" + message = m break case TextMessage: + m := (message.(TextMessage)) + m.Type = "text" + message = m break default: return