linebot 版本更新後,一些參數需更換
請問下面的function中linebot.URITemplateAction這些該換成什麼?
func validateActionTexts(iaction interface{}) error {
switch action := iaction.(type) {
case *linebot.URITemplateAction:
if len([]rune(action.Label)) > 20 {
return ErrorTextExceedLimit
}....
我試著更換成*linebot.ActionTypeURI
但會顯示invalid indirect of linebot.ActionTypeURI (type linebot.ActionType)
linebot 版本更新後,一些參數需更換
請問下面的function中linebot.URITemplateAction這些該換成什麼?
我試著更換成*linebot.ActionTypeURI
但會顯示
invalid indirect of linebot.ActionTypeURI (type linebot.ActionType)