企业微信(WeCom)-基础 icon

企业微信(WeCom)-基础

企业微信基础功能 - 通讯录、应用消息、群聊、消息推送、企业互联、素材、系统、电子发票、第三方应用授权、接口调用许可、收银台、对外收款、小程序对外收款、企业红包/向员工付款、数据与智能专区、会话内容存档、推广二维码、账号ID、安全管理

Actions248

群聊会话 → [消息发送] 发送文件消息

AI-generated

Summary

Send a file message to a WeCom group chat using its chat ID and a previously uploaded media ID.

Inputs

  • 群聊ID (chatid) (required) — The unique identifier of the group chat.
  • Media ID (media_id) (required) — The file's media ID, obtained through the temporary media upload API.
  • 保密消息 (safe) — Whether to send the file as a confidential message. Defaults to false. WeCom documents support for confidential files in txt, pdf, doc, docx, ppt, pptx, xls, xlsx, xml, jpg, jpeg, png, bmp, and gif formats.

Output shape

A single result item containing the WeCom API response for the send request.

The operation sends the message to WeCom; the file itself is referenced by media ID rather than passed as binary data.

Links

Discussion