curl --request POST \
--url http://localhost:8080/cabinet/admin/pinned-messages/{message_id}/activate{
"message": {
"id": 123,
"content": "<string>",
"send_before_menu": true,
"send_on_every_start": true,
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"media_type": "<string>",
"media_file_id": "<string>",
"created_by": 123,
"updated_at": "2023-11-07T05:31:56Z"
},
"sent_count": 123,
"failed_count": 123
}Activate a pinned message.
Deactivates the current active message and activates the specified one. If broadcast=true, sends to all active users immediately.
curl --request POST \
--url http://localhost:8080/cabinet/admin/pinned-messages/{message_id}/activate{
"message": {
"id": 123,
"content": "<string>",
"send_before_menu": true,
"send_on_every_start": true,
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"media_type": "<string>",
"media_file_id": "<string>",
"created_by": 123,
"updated_at": "2023-11-07T05:31:56Z"
},
"sent_count": 123,
"failed_count": 123
}