wx contacts
Find contacts and refresh their saved information
| Argument or flag | Takes | What it does |
|---|---|---|
--cursor | takes <CURSOR> | Continue from the next-page cursor of the previous result |
--search | takes <SEARCH> | Only list contacts whose name or ID contains this text |
wx contacts avatar
Retrieve a saved avatar or request an avatar refresh
| Argument or flag | Takes | What it does |
|---|---|---|
<ID> | position 1, required | ID of the contact whose avatar to retrieve |
--detach | switch | Return as soon as the work is queued instead of waiting for it |
--output | takes <OUTPUT> | Save the avatar to this new file (required unless —refresh) |
--refresh | switch | Ask WeChat for a fresh avatar instead of reading the saved one |
--wait | takes <WAIT>, default 30 | Seconds to wait for completion; the work keeps running after the wait ends |
wx contacts find
Find saved entries matching a name or ID
| Argument or flag | Takes | What it does |
|---|---|---|
<QUERY> | position 1, required | Name or ID text to search for |
wx contacts get
Show a saved entry by ID
| Argument or flag | Takes | What it does |
|---|---|---|
<ID> | position 1, required | ID of the contact or group, from the matching list command |
wx contacts list
List saved contacts with optional pagination
| Argument or flag | Takes | What it does |
|---|---|---|
--all | switch | Include all cached people, even non-contacts and unknown relationships |
--cursor | takes <CURSOR> | Continue from the next-page cursor of the previous result |
--limit | takes <LIMIT> | Return at most this many items |
wx contacts lookup
Look up one or two known contact IDs live on WeChat without saving the result
| Argument or flag | Takes | What it does |
|---|---|---|
<IDS> | position 1, required, repeatable | One or two distinct contact IDs to look up live on WeChat |
wx contacts refresh
Refresh one entry from WeChat
| Argument or flag | Takes | What it does |
|---|---|---|
<ID> | position 1, required | ID of the contact or group, from the matching list command |
--detach | switch | Return as soon as the work is queued instead of waiting for it |
--wait | takes <WAIT>, default 30 | Seconds to wait for completion; the work keeps running after the wait ends |
wx contacts remove
Remove this account’s contact relationship while preserving chat history
| Argument or flag | Takes | What it does |
|---|---|---|
<ID> | position 1, required | Exact existing ordinary contact ID |
--detach | switch | Return as soon as the work is queued instead of waiting for it |
--idempotency-key | takes <IDEMPOTENCY_KEY> | Reuse this key when retrying so the daemon applies the request only once |
--wait | takes <WAIT>, default 30 | Seconds to wait for completion; the work keeps running after the wait ends |
wx contacts requests
Inspect, send, accept or locally delete friend-request conversations
wx contacts requests accept
Accept the exact inspected version of an incoming request. When any privacy flag is supplied, omitted privacy flags default to false
| Argument or flag | Takes | What it does |
|---|---|---|
<ID> | position 1, required | Request ID from list/get |
--chats-only | takes <CHATS_ONLY>, values true|false | Whether to restrict this relationship to chats (true or false) |
--detach | switch | Return as soon as the work is queued instead of waiting for it |
--expected-version | required, takes <EXPECTED_VERSION> | Current version returned by list/get |
--hide-my-posts | takes <HIDE_MY_POSTS>, values true|false | Whether to hide your posts from this contact (true or false) |
--hide-their-posts | takes <HIDE_THEIR_POSTS>, values true|false | Whether to hide this contact’s posts (true or false) |
--idempotency-key | takes <IDEMPOTENCY_KEY> | Reuse this key when retrying so the daemon applies the request only once |
--wait | takes <WAIT>, default 30 | Seconds to wait for completion; the work keeps running after the wait ends |
wx contacts requests delete
Delete local request conversation/history. Does not reject or cancel on WeChat
| Argument or flag | Takes | What it does |
|---|---|---|
<ID> | position 1, required | Request ID from list/get |
--detach | switch | Return as soon as the work is queued instead of waiting for it |
--expected-version | required, takes <EXPECTED_VERSION> | Current version returned by list/get |
--idempotency-key | takes <IDEMPOTENCY_KEY> | Reuse this key when retrying so the daemon applies the request only once |
--wait | takes <WAIT>, default 30 | Seconds to wait for completion; the work keeps running after the wait ends |
wx contacts requests get
Inspect one request, its verification history and current version
| Argument or flag | Takes | What it does |
|---|---|---|
<ID> | position 1, required | Exact request ID from list |
wx contacts requests list
List saved request conversations in both directions; history is not server pending proof
| Argument or flag | Takes | What it does |
|---|---|---|
--actionable | switch | Show only current incoming acceptance candidates |
--cursor | takes <CURSOR> | Exact nextCursor from the same query |
--direction | takes <DIRECTION>, values incoming|outgoing | Filter by incoming or outgoing direction |
--limit | takes <LIMIT> | Maximum number of rows on this page, from 1 to 200 |
--search | takes <SEARCH> | Match saved names, peer identities and verification text |
wx contacts requests send
Send one friend request using an opaque result from contacts search. When any privacy flag is supplied, omitted privacy flags default to false
| Argument or flag | Takes | What it does |
|---|---|---|
<RECIPIENT_REF> | position 1, required | Exact recipientRef from discovery on this account |
--chats-only | takes <CHATS_ONLY>, values true|false | Whether to restrict this relationship to chats (true or false) |
--detach | switch | Return as soon as the work is queued instead of waiting for it |
--hide-my-posts | takes <HIDE_MY_POSTS>, values true|false | Whether to hide your posts from this contact (true or false) |
--hide-their-posts | takes <HIDE_THEIR_POSTS>, values true|false | Whether to hide this contact’s posts (true or false) |
--idempotency-key | takes <IDEMPOTENCY_KEY> | Reuse this key when retrying so the daemon applies the request only once |
--message | required, takes <MESSAGE> | Owner-supplied verification greeting |
--wait | takes <WAIT>, default 30 | Seconds to wait for completion; the work keeps running after the wait ends |
wx contacts search
Discover a person on WeChat by WeChat ID. Phone lookup is unverified
| Argument or flag | Takes | What it does |
|---|---|---|
<QUERY> | position 1, required | Discovery query, distinct from local contacts find |
wx contacts set
Change a contact’s privacy settings or remark; keep omitted settings
| Argument or flag | Takes | What it does |
|---|---|---|
<ID> | position 1, required | Exact existing contact ID |
--chats-only | takes <CHATS_ONLY>, values true|false | Whether to restrict this relationship to chats (true or false) |
--clear-remark | switch | Clear your private name for this contact |
--detach | switch | Return as soon as the work is queued instead of waiting for it |
--hide-my-posts | takes <HIDE_MY_POSTS>, values true|false | Whether to hide your posts from this contact (true or false) |
--hide-their-posts | takes <HIDE_THEIR_POSTS>, values true|false | Whether to hide this contact’s posts (true or false) |
--idempotency-key | takes <IDEMPOTENCY_KEY> | Reuse this key when retrying so the daemon applies the request only once |
--remark | takes <REMARK> | Set your private name for this contact; outer spaces are removed. Change privacy in a separate command |
--wait | takes <WAIT>, default 30 | Seconds to wait for completion; the work keeps running after the wait ends |
wx contacts sync
Refresh the catalog from WeChat
| Argument or flag | Takes | What it does |
|---|---|---|
--detach | switch | Return as soon as the work is queued instead of waiting for it |
--wait | takes <WAIT>, default 30 | Seconds to wait for completion; the work keeps running after the wait ends |