@@ -113,6 +113,10 @@ wa/messages pull 10d 0d
113113wa/messages pull 30d 20d
114114wa/messages pull 20d 10d
115115wa/messages pull 10d 0d # You can omit the last 0d
116+ # The same as
117+ wa/messages pull 30d
118+ # The same as
119+ wa/messages pull 30d 0d
116120```
117121
118122You can mix units (` 7d ` , ` 6h ` , ` 15m ` ) and WAHA converts them to milliseconds automatically.
@@ -133,7 +137,7 @@ Keep the defaults to backfill the recent timeline:
133137wa/messages pull
134138```
135139
136- if you wanna rebuild the whole 1 days conversation ** in the chat** you can do:
140+ if you want to rebuild the whole 1-day conversation ** in the chat** you can do:
137141
138142``` bash {title="Force 1 Day"}
139143wa/messages pull 1d --force
@@ -153,7 +157,41 @@ Grab a broader range while still ending at the current moment:
153157wa/messages pull 10d # --force
154158```
155159
156- ### Import an older slice only
160+ ### Include Media
161+ By default, WAHA only pulls text messages to speed up the process.
162+
163+ You can include media attachments with ` --media ` flag:
164+
165+ ``` bash {title="Include Media"}
166+ wa/messages pull --media
167+ ```
168+
169+ ### Pull Other Chats
170+ By default, WAHA only pulls messages from ** direct chats (1:1)** .
171+
172+ You can include groups, channels, status replies, and broadcast lists with these flags:
173+
174+ ``` bash {title="Include Other Chats"}
175+ wa/messages pull --groups --channels --status --broadcast
176+ ```
177+
178+ You can also exclude direct messages with ` --no-dm ` flag:
179+
180+ ``` bash {title="Groups Only"}
181+ wa/messages pull --no-dm --groups
182+ ```
183+
184+ ### Resolve conversations after import
185+
186+ Close conversations once their history is restored so agents can focus on new tickets:
187+
188+ ``` bash {title="Auto Resolve"}
189+ wa/messages pull --resolve-conversations
190+ ```
191+
192+ ` --rc ` is a shorthand for the same option.
193+
194+ ### Import an older in batch
157195
158196Backfill past interactions without rewriting newer chats:
159197
@@ -205,44 +243,14 @@ wa/messages pull 1y --rc --pause
205243` --pause ` adds the pull to the queue in a paused state and resumes the queues automatically after it completes.
206244
207245
208- ### Resolve conversations after import
209-
210- Close conversations once their history is restored so agents can focus on new tickets:
211-
212- ``` bash {title="Auto Resolve"}
213- wa/messages pull --resolve-conversations
214- ```
215-
216- ` --rc ` is a shorthand for the same option.
217-
218- ### Include Media
219- By default, WAHA only pulls text messages to speed up the process.
220-
221- You can include media attachments with ` --media ` flag:
222-
223- ``` bash {title="Include Media"}
224- wa/messages pull --media
225- ```
226-
227- ### Pull Other Chats
228- By default, WAHA only pulls messages from ** direct chats (1:1)** .
229-
230- You can include groups, channels, status replies, and broadcast lists with these flags:
231-
232- ``` bash {title="Include Other Chats"}
233- wa/messages pull --groups --channels --status --broadcast
234- ```
246+ ### Full options
235247
236- You can also exclude direct messages with ` --no-dm ` flag:
248+ Adjust the values to fit your environment and run ` wa/messages help ` to see current defaults from your build.
237249
238- ``` bash {title="Groups Only"}
239- wa/messages pull --no-dm --groups
250+ ``` bash
251+ wa/messages help
240252```
241253
242- ### Full options
243-
244- Adjust the values to fit your environment and run ` wa/messages help ` to see current defaults from your build:
245-
246254``` bash {title="Full Options"}
247255wa/messages pull
248256 --chat all
0 commit comments