MAX icon

MAX

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

Чат → Получить информацию

AI-generated

Summary

Fetches details of a single MAX group chat by its ID via a GET request to the MAX Platform API (/chats/{chatId}).

Inputs

  • chatId (required) — Identifier of the group chat to look up. It is inserted directly into the request URL. Can be set per input item with an expression.

Output shape

One output item per input item. Its json is the raw chat object returned by the MAX API.

The node doesn't reshape the response, so the available fields depend on what MAX returns. If a request fails and 'Continue On Fail' is enabled, the item's json is { error: message }. Otherwise the node throws.

Examples

Example 1: Look up a chat's details before updating it or posting to it.

Resource: Чат; Operation: Получить информацию; ID чата: -70931657203722

Example 2: Enrich incoming bot events with chat info.

Resource: Чат; Operation: Получить информацию; ID чата: an expression such as {{ $json.event.chat_id }}

Links

Discussion