create

fun create(id: String, title: String? = null, content: String? = null, msgtype: Int? = null, type: Int? = null, testData: String? = null, testChannel: String? = null): UpdateTemplateApi(source)

构建 UpdateTemplateApi

Parameters

id

模板ID,最长16

title

模板标题,最长64,可选更新

content

模板内容,可选更新

msgtype

消息类型:1代表kmd消息,2代表通过json发卡片消息,3代表通过yaml发卡片消息,可选更新

type

模板类型,目前固定为0,代表模板使用twig渲染,可选更新

testData

测试数据,主要用于界面上的便利测试,可选更新

testChannel

测试的频道,最长64,主要用于界面上的便利测试,可选更新