企业微信(WeCom)-基础 icon

企业微信(WeCom)-基础

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

Actions257

群聊会话 → [消息发送] 发送文本卡片消息

AI-generated

Summary

Send a text card message to a specified WeCom group chat with customizable title, description, link, and button text.

Inputs

  • chatid (required) — The unique identifier of the group chat to send the message to.
  • textcard_input_mode (required) — The input mode for the text card content, either form-based inputs or raw JSON.
  • textcard_json — The entire text card object as JSON; used if 'JSON输入' mode is selected.
  • title (required) — The title of the text card message, limited to 128 bytes; automatic truncation applies.
  • description (required) — The detailed description of the text card, limited to 512 bytes; supports HTML tags for formatting.
  • url (required) — The URL where the user will be redirected upon clicking the card.
  • btntxt — Optional button text on the text card, defaults to '详情', limited to 4 characters with truncation.
  • safe — Boolean flag indicating whether the message is confidential; defaults to false.

Output shape

a single record

The operation returns the API response after attempting to send the text card message. The response will usually include message send status and any error information if the send fails.

Examples

Example 1: Send a text card with form input

Provide the group chat ID, enter title, description, URL, optionally customize button text and set confidentiality flag.

Example 2: Send a text card using JSON input

Provide the group chat ID, set input mode to JSON, and input the full text card JSON object directly.

Links

Discussion