Actions26
- Сообщение Actions
- Чат Actions
- Участники чата Actions
- Бот Actions
- Callback Actions
- Видео Actions
Чат → Закрепить сообщение
AI-generatedSummary
Pins a specific message in a MAX group chat by sending a PUT request to the chat's pin endpoint, optionally notifying members.
Inputs
- chatId (required) — ID of the group chat where the message will be pinned. Inserted into the URL path /chats/{chatId}/pin.
- pinMessageId (required) — ID of the message to pin. Sent as message_id in the request body.
- pinNotify — Whether to notify chat members about the new pinned message. Defaults to true. Sent as notify in the request body.
Output shape
One output item per input item, with the JSON response returned by the MAX API for the pin request.
The source does not transform the response, so its exact fields depend on the MAX API. If an item fails and 'Continue On Fail' is enabled, that item outputs {error: message} instead. Otherwise the node throws. Uses the maxApi credential.
Examples
Example 1: Pin an announcement the bot just posted, without alerting members.
Resource: Чат; Operation: Закрепить сообщение; ID чата: -70931657203722; ID сообщения для закрепления: {{ $json.message.id }} (an expression referencing the message ID returned by a previous Send step); Уведомить участников: false.
Example 2: Pin a message and notify everyone.
ID чата: your group chat ID; ID сообщения для закрепления: mid.1234; Уведомить участников: true (default).