Actions26
- Сообщение Actions
- Чат Actions
- Участники чата Actions
- Бот Actions
- Callback Actions
- Видео Actions
Чат → Получить список чатов
AI-generatedSummary
Fetches the group chats the MAX bot belongs to by sending a GET request to the MAX Platform API /chats endpoint, limited to a chosen count.
Inputs
- Количество чатов (chatCount) — Maximum number of chats to return, from 1 to 100. Defaults to 50. It is sent as the
countquery parameter.
Output shape
One output item per input item. Each item's json is the raw MAX API response from GET /chats, which is the API's chat list object.
The source has no pagination loop, marker handling or result splitting, so the response is not split into one item per chat. Only the first
countchats are requested, and a bot with more than 100 chats can't be fully listed with this operation. The request repeats once for every incoming item. If 'Continue on Fail' is on, a failed item returns{ error: message }instead. Authentication uses themaxApicredential.
Examples
Example 1: List the bot's chats with the default limit to find chat IDs for later steps.
Resource: Чат; Operation: Получить список чатов; Количество чатов: 50
Example 2: Check a small sample of the bot's most recent chats.
Resource: Чат; Operation: Получить список чатов; Количество чатов: 10
Example 3: Pull the maximum number of chats the operation allows in a single call.
Resource: Чат; Operation: Получить список чатов; Количество чатов: 100