1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-08 14:42:26 +08:00

feat:微信客服支持向客户发送欢迎语 (#478)

* feat:微信客服支持向客户发送欢迎语

* chore: go fmt file

* feat:移除空白文件
This commit is contained in:
Afeyer
2021-09-13 10:07:18 +08:00
committed by GitHub
parent bc9f483c8e
commit d776f5c400
3 changed files with 101 additions and 0 deletions

View File

@@ -120,6 +120,7 @@ type EnterSessionEvent struct {
ExternalUserID string `json:"external_userid"` // 客户UserID
Scene string `json:"scene"` // 进入会话的场景值,获取客服帐号链接开发者自定义的场景值
SceneParam string `json:"scene_param"` // 进入会话的自定义参数获取客服帐号链接返回的url开发者按规范拼接的scene_param参数
WelcomeCode string `json:"welcome_code"` // 如果满足发送欢迎语条件条件为1. 企业没有在管理端配置了原生欢迎语2. 用户在过去48小时里未收过欢迎语且未向该用户发过消息会返回该字段。可用该welcome_code调用发送事件响应消息接口给客户发送欢迎语。
} `json:"event"` // 事件消息
}