# 助手消息

# 发送助手消息

# host: https://yach-oapi.zhiyinlou.com 正式环境

# host: https://yach-oapi-test.zhiyinlou.com 测试环境

# 概述

名称
地址 /chatbot/message/send?access_token=ACCESS_TOKEN
请求方式 POST
参数 见【参数】
返回值 见【返回值】

# 参数

参数 参数类型 必须 说明
access_token String 调用接口凭证
agent_id String 应用app_id
chatbot_id String 授权应用的机器人id (目前支持红包机器人助手(3007)、周报机器人助手(3005),需要先授权才能使用)
userids String 接收助手消息的员工id,半角竖线隔开,接收人员不能超过100人。
message String 消息格式参考:消息类型与数据格式
is_skip_error Int 遇到不存在的用户,是否跳过校验,默认0(0:否1:是)
important_flag Int 重要通知标识,默认0(0:不推送 1:推送)

返回值

{
    "code": 200,
    "msg": "",
    "obj": {
        "msgBodyId":"61087906893637192"
    }
}

# 撤回助手消息

# host: https://yach-oapi.zhiyinlou.com 正式环境

# host: https://yach-oapi-test.zhiyinlou.com 测试环境

# 概述

名称
地址 /chatbot/message/recall?access_token=ACCESS_TOKEN
请求方式 POST
参数 见【参数】
返回值 见【返回值】

# 参数

参数 参数类型 必须 说明
access_token String 调用接口凭证
chatbot_id String 授权应用的机器人id (目前支持红包机器人助手(3007)、周报机器人助手(3005),需要先授权才能使用)
msg_body_ids String 助手消息id,半角竖线隔开,不能超过100个

返回值

{
    "code": 200,
    "msg": "",
    "obj": {
        "recallMid":"61087906893637193"
    }
}
上次更新: 4/23/2021, 8:26:10 PM
foo