wecomcli-get-msg

Query WeCom chat lists, pull message history, download media, and send text messages via CLI.

3|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Liangdi/wecom-pro --skill wecomcli-get-msg-liangdi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: wecomcli-get-msg
Source: https://github.com/Liangdi/wecom-pro/tree/main/skills/wecomcli-get-msg
Command: npx skills add https://github.com/Liangdi/wecom-pro --skill wecomcli-get-msg-liangdi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wecom-pro, and includes references (resource) components.

What problem does it solve? Accessing WeCom (Enterprise WeChat) conversations and message history normally requires manual app navigation, making it hard for AI agents or terminal users to search chats, retrieve records, download attachments, or send messages programmatically. ## Core Features & Use Cases - Chat List & History Retrieval: Query conversation lists by time range and pull message records (text, image, file, voice, video) for single or group chats within the last 7 days. - Media Download: Automatically download images, files, voice, and video attachments to local paths with correct file extensions based on MIME type. - Text Message Sending: Send text messages to individual or group chats with confirmation before sending. - Use Case: Ask the agent to "show my recent chat with Zhang San and download the files he sent" — it resolves the chat ID, pulls messages, maps user IDs to names, downloads attachments, and reports local file paths. ## Quick Start Ask the agent to show your recent WeCom conversations from the past week or send a text message to a specific colleague by name.

Frequently Asked Questions about wecomcli-get-msg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my WeCom chat history from the command line?▼

Use wecom-pro msg get_message with the chat type, chat ID, and a time range in YYYY-MM-DD HH:mm:ss format. If you only know a contact or group name, first call get_msg_chat_list to resolve the chat ID.

How to send a WeCom message to a colleague or group via CLI?▼

Run wecom-pro msg send_message with chat_type (1 for single chat, 2 for group), the chatid, msgtype text, and the content. The skill confirms the recipient and message content with you before sending.

Can I download images and files from WeCom messages?▼

Yes. Non-text messages contain a media_id, and the get_msg_media command downloads the file locally, returning its local path, name, size, and MIME type. The skill also fixes missing or incorrect file extensions based on content type.

What is the time range limit for pulling WeCom messages?▼

Message retrieval only supports the last 7 days. The begin_time cannot be earlier than 7 days before the current time, and the skill defaults to the most recent 7 days when no range is specified.

Does wecom-pro support multiple WeCom bots?▼

Yes. All message commands accept a global --bot or -b flag to select a configured bot, such as work or personal. If omitted, the default bot is used.