package linemsg import ( "fmt" lineobj "git.trj.tw/golang/mtfosbot/module/line-message/line-object" ) // MessageEvent - func MessageEvent(botid string, e *lineobj.EventObject) { if len(botid) == 0 { return } switch e.Type { case "message": messageType(botid, e) break default: fmt.Println("line webhook type not match") } }