Skip to content

Commit 846178b

Browse files
authored
wacli-messages-{context, list, search, show}: add pages (#21967)
1 parent 0918567 commit 846178b

4 files changed

Lines changed: 76 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# wacli messages context
2+
3+
> Display messages surrounding a specific WhatsApp message.
4+
> See also: `wacli messages show`, `wacli messages list`.
5+
> More information: <https://wacli.sh/messages.html>.
6+
7+
- Show context around a specific message in JSON format:
8+
9+
`wacli messages context {{message_id}} --json`
10+
11+
- Show context around a message using a custom store:
12+
13+
`wacli messages context {{message_id}} --json --store {{path/to/store}}`
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# wacli messages list
2+
3+
> List messages from a WhatsApp chat.
4+
> See also: `wacli messages search`, `wacli messages show`, `wacli messages context`.
5+
> More information: <https://wacli.sh/messages.html>.
6+
7+
- List messages from a specific chat in JSON format:
8+
9+
`wacli messages list --chat {{phone_number}}@s.whatsapp.net --json`
10+
11+
- List messages received after a specific date:
12+
13+
`wacli messages list --chat {{phone_number}}@s.whatsapp.net --after {{2026-01-28}} --json`
14+
15+
- List messages received before a specific date:
16+
17+
`wacli messages list --chat {{phone_number}}@s.whatsapp.net --before {{2026-01-28}} --json`
18+
19+
- List messages within a date range:
20+
21+
`wacli messages list --chat {{phone_number}}@s.whatsapp.net --after {{2026-01-01}} --before {{2026-01-31}} --json`
22+
23+
- Limit the number of results:
24+
25+
`wacli messages list --chat {{phone_number}}@s.whatsapp.net --limit {{10}} --json`
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# wacli messages search
2+
3+
> Search WhatsApp messages using full-text search.
4+
> See also: `wacli messages list`, `wacli messages show`.
5+
> More information: <https://wacli.sh/messages.html>.
6+
7+
- Search messages in a specific chat:
8+
9+
`wacli messages search "{{query}}" --chat {{phone_number}}@s.whatsapp.net --json`
10+
11+
- Search messages from a specific sender:
12+
13+
`wacli messages search "{{query}}" --from {{phone_number}}@s.whatsapp.net --json`
14+
15+
- Search messages after a specific date:
16+
17+
`wacli messages search "{{query}}" --chat {{phone_number}}@s.whatsapp.net --after {{2026-01-28}} --json`
18+
19+
- Search messages of a specific type:
20+
21+
`wacli messages search "{{query}}" --type {{image|video|audio|document}} --json`
22+
23+
- Search messages with a result limit:
24+
25+
`wacli messages search "{{query}}" --chat {{phone_number}}@s.whatsapp.net --limit {{10}} --json`
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# wacli messages show
2+
3+
> Display a specific WhatsApp message by its ID.
4+
> See also: `wacli messages list`, `wacli messages context`.
5+
> More information: <https://wacli.sh/messages.html>.
6+
7+
- Show a specific message in JSON format:
8+
9+
`wacli messages show {{message_id}} --json`
10+
11+
- Show a specific message using a custom store:
12+
13+
`wacli messages show {{message_id}} --json --store {{path/to/store}}`

0 commit comments

Comments
 (0)