create
fun create(title: String, content: String, msgtype: Int, type: Int = 0, testData: String = "", testChannel: String = ""): CreateTemplateApi(source)
Parameters
title
模板标题,最长64
content
模板内容
msgtype
消息类型:1代表kmd消息,2代表通过json发卡片消息,3代表通过yaml发卡片消息
type
模板类型,目前固定为0,代表模板使用twig渲染
testData
测试数据,主要用于界面上的便利测试
testChannel
测试的频道,最长64,主要用于界面上的便利测试