curl --request POST \
--url http://localhost:8080/pinned-messages \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"send_before_menu": true,
"send_on_every_start": true,
"media": {
"type": "<string>",
"file_id": "<string>"
}
}
'{
"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
}Создать новое закреплённое сообщение.
Автоматически деактивирует предыдущее активное сообщение.
curl --request POST \
--url http://localhost:8080/pinned-messages \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>",
"send_before_menu": true,
"send_on_every_start": true,
"media": {
"type": "<string>",
"file_id": "<string>"
}
}
'{
"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
}Разослать сообщение всем пользователям (по умолчанию False — только при /start)