跳转到内容

wx messages

此内容尚不支持你的语言。

Read or send messages and retrieve their attachments

wx messages get

Show a message by local ID, optionally qualified by chat

Argument or flagTakesWhat it does
<ID>position 2Message ID from wx messages list, checked to belong to the chat
<THREAD_OR_ID>position 1, requiredMessage ID, or the chat ID when a message ID follows

wx messages list

List messages in a chat

Argument or flagTakesWhat it does
<THREAD>position 1, requiredChat ID from wx chats list
--cursortakes <CURSOR>Continue from the next-page cursor of the previous result
--limittakes <LIMIT>Return at most this many items

wx messages media

Retrieve a message attachment or report its availability

Argument or flagTakesWhat it does
<ID>position 2, requiredMessage ID from wx messages list
<THREAD>position 1, requiredChat ID the message belongs to, from wx chats list
--cached-onlyswitchUse only a copy the daemon has already saved; never start a download
--detachswitchReturn as soon as the work is queued instead of waiting for it
--outputtakes <OUTPUT>Save the attachment to this new file; an existing file is not overwritten
--qualitytakes <QUALITY>, default best, values best|thumbnail|standard|original|full|normal|encodedCopy to retrieve: images have thumbnail, standard and original; videos normal and original; voice encoded. best picks the best available and full means original
--waittakes <WAIT>, default 20Seconds to wait for the download; it keeps running after the wait ends

wx messages read

Mark a whole chat read using its current read-state version

Argument or flagTakesWhat it does
<THREAD>position 1, requiredChat ID from wx chats list
--expected-versionrequired, takes <EXPECTED_VERSION>Read-state version from wx chats get; refused if the chat changed since

wx messages recall

Recall an own message using its opaque local ID and exact remote ID

Argument or flagTakesWhat it does
<ID>position 1, requiredMessage ID from wx messages list —json (the id field)
--detachswitchReturn as soon as the work is queued instead of waiting for it
--idempotency-keytakes <IDEMPOTENCY_KEY>Reuse this key when retrying so the daemon applies the request only once
--server-idrequired, takes <SERVER_ID>Exact server ID of the message, from wx messages list —json (serverId)
--waittakes <WAIT>, default 30Seconds to wait for completion; the work keeps running after the wait ends

wx messages send

Send text, a URL share, a contact card, an image, a file, a video or a voice note

Argument or flagTakesWhat it does
<THREAD>position 1, requiredChat ID to send to, from wx chats list
--contact-cardtakes <CONTACT_ID>Send a contact card for a contact ID, Official Account ID, or “self”
--descriptiontakes <DESCRIPTION>Description shown on the shared link card
--detachswitchReturn as soon as the work is queued instead of waiting for it
--filetakes <FILE>Send this file as an attachment
--idempotency-keytakes <IDEMPOTENCY_KEY>Reuse this key when retrying so the daemon applies the request only once
--imagetakes <IMAGE>Send this image file
--image-qualitytakes <IMAGE_QUALITY>, values standard|originalSend a compressed image (default), or include its full-resolution original
--mentiontakes <MENTION>, repeatableMention a group member by account ID; repeat for multiple members
--mention-allswitchMention all group members (WeChat enforces the account’s permissions)
--quote-message-idtakes <QUOTE_MESSAGE_ID>Quote a stored message in this chat; also supply its exact server ID
--quote-server-idtakes <QUOTE_SERVER_ID>Exact server ID of the quoted message; use it with —quote-message-id
--sharetakes <SHARE>Send this URL as a shared link card; —title is required
--texttakes <TEXT>Send this text message
--thumbnail-urltakes <THUMBNAIL_URL>Thumbnail image URL shown on the shared link card
--titletakes <TITLE>Title shown on the shared link card
--videotakes <VIDEO>Send this MP4 video file
--video-qualitytakes <VIDEO_QUALITY>, values normal|originalPrepare normal playback, or include the unchanged original video too
--voicetakes <VOICE>Send this audio file as a voice message
--waittakes <WAIT>, default 30Seconds to wait for the send to finish (up to 3600 for attachments, 900 otherwise)

wx messages send-status

Show an outgoing send by ID

Argument or flagTakesWhat it does
<ID>position 1, requiredSend ID printed by wx messages send

wx messages sends

Inspect or cancel sends, or find a send by its idempotency key

wx messages sends cancel

Request cancellation of an outgoing send

Argument or flagTakesWhat it does
<ID>position 1, requiredSend ID printed by wx messages send

wx messages sends get

Show an outgoing send by ID

Argument or flagTakesWhat it does
<ID>position 1, requiredSend ID printed by wx messages send

wx messages sends lookup

Find an outgoing send by its original idempotency key

Argument or flagTakesWhat it does
--idempotency-keyrequired, takes <IDEMPOTENCY_KEY>Key that was given when the send was submitted

wx messages sync

Fetch new messages for the selected account

wx messages voice

Inspect or cancel outgoing voice jobs

wx messages voice cancel

Request cancellation of an item by ID

Argument or flagTakesWhat it does
<ID>position 1, requiredID printed when the job, operation or login attempt was started

wx messages voice get

Show the current result and state of an item by ID

Argument or flagTakesWhat it does
<ID>position 1, requiredID printed when the job, operation or login attempt was started

wx messages voice retry

Retry an eligible failed item by ID

Argument or flagTakesWhat it does
<ID>position 1, requiredID printed when the job, operation or login attempt was started
--reuse-completed-uploadswitchReuse a completed file upload whose message submission never started

wx messages watch

Stream message events, optionally saving a resume cursor

Argument or flagTakesWhat it does
--aftertakes <AFTER>Start after this event cursor, such as the last one you processed. Without it, the watch resumes from —cursor-file or starts from the newest event
--cursor-filetakes <CURSOR_FILE>Save the last event cursor to this private file and resume from it next time