diff --git a/pages/common/wacli-messages-context.md b/pages/common/wacli-messages-context.md new file mode 100644 index 0000000000..3c6d5b2633 --- /dev/null +++ b/pages/common/wacli-messages-context.md @@ -0,0 +1,13 @@ +# wacli messages context + +> Display messages surrounding a specific WhatsApp message. +> See also: `wacli messages show`, `wacli messages list`. +> More information: . + +- Show context around a specific message in JSON format: + +`wacli messages context {{message_id}} --json` + +- Show context around a message using a custom store: + +`wacli messages context {{message_id}} --json --store {{path/to/store}}` diff --git a/pages/common/wacli-messages-list.md b/pages/common/wacli-messages-list.md new file mode 100644 index 0000000000..89f5a8fa6d --- /dev/null +++ b/pages/common/wacli-messages-list.md @@ -0,0 +1,25 @@ +# wacli messages list + +> List messages from a WhatsApp chat. +> See also: `wacli messages search`, `wacli messages show`, `wacli messages context`. +> More information: . + +- List messages from a specific chat in JSON format: + +`wacli messages list --chat {{phone_number}}@s.whatsapp.net --json` + +- List messages received after a specific date: + +`wacli messages list --chat {{phone_number}}@s.whatsapp.net --after {{2026-01-28}} --json` + +- List messages received before a specific date: + +`wacli messages list --chat {{phone_number}}@s.whatsapp.net --before {{2026-01-28}} --json` + +- List messages within a date range: + +`wacli messages list --chat {{phone_number}}@s.whatsapp.net --after {{2026-01-01}} --before {{2026-01-31}} --json` + +- Limit the number of results: + +`wacli messages list --chat {{phone_number}}@s.whatsapp.net --limit {{10}} --json` diff --git a/pages/common/wacli-messages-search.md b/pages/common/wacli-messages-search.md new file mode 100644 index 0000000000..d2d1daf5e6 --- /dev/null +++ b/pages/common/wacli-messages-search.md @@ -0,0 +1,25 @@ +# wacli messages search + +> Search WhatsApp messages using full-text search. +> See also: `wacli messages list`, `wacli messages show`. +> More information: . + +- Search messages in a specific chat: + +`wacli messages search "{{query}}" --chat {{phone_number}}@s.whatsapp.net --json` + +- Search messages from a specific sender: + +`wacli messages search "{{query}}" --from {{phone_number}}@s.whatsapp.net --json` + +- Search messages after a specific date: + +`wacli messages search "{{query}}" --chat {{phone_number}}@s.whatsapp.net --after {{2026-01-28}} --json` + +- Search messages of a specific type: + +`wacli messages search "{{query}}" --type {{image|video|audio|document}} --json` + +- Search messages with a result limit: + +`wacli messages search "{{query}}" --chat {{phone_number}}@s.whatsapp.net --limit {{10}} --json` diff --git a/pages/common/wacli-messages-show.md b/pages/common/wacli-messages-show.md new file mode 100644 index 0000000000..703a15dfa3 --- /dev/null +++ b/pages/common/wacli-messages-show.md @@ -0,0 +1,13 @@ +# wacli messages show + +> Display a specific WhatsApp message by its ID. +> See also: `wacli messages list`, `wacli messages context`. +> More information: . + +- Show a specific message in JSON format: + +`wacli messages show {{message_id}} --json` + +- Show a specific message using a custom store: + +`wacli messages show {{message_id}} --json --store {{path/to/store}}`