WeChat.CustomMessage.send_text
You're seeing just the function
send_text
, go back to WeChat.CustomMessage module for more information.
Link to this function
send_text(client, openid, content)
Specs
send_text(WeChat.client(), WeChat.openid(), content()) :: WeChat.response()
客服消息接口 - 发送文本消息 - 官方文档
发送文本消息时,支持插入跳小程序的文字链
文本内容<a href="http://www.qq.com" data-miniprogram-appid="appid" data-miniprogram-path="pages/index/index">点击跳小程序</a>
说明:
data-miniprogram-appid
项,填写小程序appid
,则表示该链接跳小程序;data-miniprogram-path
项,填写小程序路径,路径与app.json
中保持一致,可带参数;- 对于不支持
data-miniprogram-appid
项的客户端版本,如果有herf
项,则仍然保持跳href
中的网页链接; data-miniprogram-appid
对应的小程序必须与公众号有绑定关系。
Link to this function
send_text(client, openid, content, kf_account)
Specs
send_text( WeChat.client(), WeChat.openid(), content(), WeChat.CustomService.kf_account() ) :: WeChat.response()
客服消息接口 - 发送文本消息 - by某个客服帐号 - 官方文档