MAX icon

MAX

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

Чат → Открепить сообщение

AI-generated

Summary

Unpins the currently pinned message in a MAX group chat by sending a DELETE request to the chat's pin endpoint.

Inputs

  • chatId (required) — ID of the group chat to unpin the message in. It is inserted into the request URL (/chats/{chatId}/pin). Can be set with an expression for each input item.

Output shape

One output item per input item, with the parsed JSON body returned by the MAX API for DELETE /chats/{chatId}/pin as its json.

No message ID is needed, because a chat has only one pinned message and that one is removed. The source does not shape the response, so it is whatever the API returns (typically a success status). With 'Continue on Fail' enabled, a failed item yields { error: message } instead of stopping the workflow.

Examples

Example 1: Remove the announcement pinned in a group chat after an event ends.

Resource: Чат; Operation: Открепить сообщение; ID чата: -70931657203722

Example 2: Unpin the message in every chat listed by earlier workflow items.

Resource: Чат; Operation: Открепить сообщение; ID чата: ={{ $json.chat_id }}

Links

Discussion