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