mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-01 15:51:29 +08:00
wacli-messages-{context, list, search, show}: add pages (#21967)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# wacli messages context
|
||||
|
||||
> Display messages surrounding a specific WhatsApp message.
|
||||
> See also: `wacli messages show`, `wacli messages list`.
|
||||
> More information: <https://wacli.sh/messages.html>.
|
||||
|
||||
- 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}}`
|
||||
@@ -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: <https://wacli.sh/messages.html>.
|
||||
|
||||
- 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`
|
||||
@@ -0,0 +1,25 @@
|
||||
# wacli messages search
|
||||
|
||||
> Search WhatsApp messages using full-text search.
|
||||
> See also: `wacli messages list`, `wacli messages show`.
|
||||
> More information: <https://wacli.sh/messages.html>.
|
||||
|
||||
- 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`
|
||||
@@ -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: <https://wacli.sh/messages.html>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user