Skip to content

linebot function update #1

@c1800054work

Description

@c1800054work

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions