You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/how-to/chats/index.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,8 +217,8 @@ GET /api/{session}/chats/{chatId}/messages?limit=10
217
217
218
218
Available parameters:
219
219
-`downloadMedia=true` - download media files (images, files) or not
220
-
-`chatId=123@c.us` - chatId, phone number
221
-
-`chatId=all`- get messages from all chats (works on [**NOWEB**]({{< relref "/docs/how-to/engines#noweb" >}}) engine only)
220
+
-`chatId=123@c.us` - chatId, phone number or `all`
221
+
-`chatId=all`works for getting messages from **all chats** on [**GOWS**]({{< relref "/docs/engines/gows" >}}) and [**NOWEB**]({{< relref "/docs/engines/noweb" >}}).
222
222
-`limit=100` - limit the number of chats to return
223
223
-`offset=0` - skip the number of chats from the start
224
224
-`filter.timestamp.lte=1727745026` - filter messages by timestamp less than or equal to `1727745026`
@@ -294,9 +294,21 @@ GET /api/{session}/chats/{chatId}/messages/{messageId}?downloadMedia=true
294
294
```
295
295
296
296
-`chatId` - in format `123123123@c.us`
297
-
-`messageId` - must be in format `{true|false}_213213@c.us_AAAAAAA`)
297
+
-`chatId=all` works for getting messages from **all chats** on [**GOWS**]({{< relref "/docs/engines/gows" >}}) and [**NOWEB**]({{< relref "/docs/engines/noweb" >}}).
298
+
-`messageId` - supports both formats:
299
+
- full format: `{true|false}_213213@c.us_AAAAAAA` (any engine)
300
+
- plain message id: `3EB0965B123D06E0B70741` (**GOWS** and **NOWEB**)
298
301
-`downloadMedia` - download media files (images, files) or not
0 commit comments