MAX icon

MAX

Отправка сообщений и работа с API мессенджера MAX

Участники чата → Добавить участников

AI-generated

Summary

Adds one or more users to a MAX group chat by sending a POST to /chats/{chatId}/members with the parsed list of numeric user IDs.

Inputs

  • ID чата (membersChatId) (required) — ID of the group chat to add users to. It is placed directly in the request URL.
  • ID пользователей (userIds) (required) — Comma-separated user IDs, e.g. "123456, 789012". Each value is trimmed and parsed as an integer. Values that are not numbers are silently dropped. An array is also accepted, for example from an expression.

Output shape

One output item per input item. Its json is the raw response from the MAX API for the add-members call.

The node does not check whether any valid IDs remain. If all values are invalid, it sends an empty user_ids array. With Continue On Fail enabled, a failed item returns {error: message} instead of stopping the workflow. Requires the maxApi credential.

Examples

Example 1: Add two users to a team group chat.

Resource: Участники чата; Operation: Добавить участников; ID чата: -70931657203722; ID пользователей: 123456, 789012

Example 2: Add a user ID taken from an earlier node.

ID чата set to a fixed chat ID; ID пользователей set to the expression {{ $json.userId }}

Links

Discussion