Send chat
Diese Anleitung gibt es nur auf Englisch.
War diese Seite hilfreich?
Diese Anleitung gibt es nur auf Englisch.
War diese Seite hilfreich?
Sends a chat message (or slash command) from the bot to the connected Minecraft server. Messages prefixed with "/" are routed as commands.
AuthorizationBearer <JWT>Preferred API authentication. Use a JWT with the api audience.
instance_id*stringuuidbot_id*stringuuidapplication/jsonmessage*stringThe chat message to send. Treated as a literal chat message. To execute a slash command, include the leading "/"; the server will route it appropriately.
Successful response.
application/jsonresult*curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/chat:send' \ -H 'Content-Type: application/json' \ -d '{ "message": "string"}'{ "result": { "actionId": "4a2794ff-94cb-4bac-8d36-d5fb36c563a0", "status": "BOT_ACTION_STATUS_UNSPECIFIED", "error": "string" }}curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/chat:send' \
-H 'Content-Type: application/json' \
-d '{
"message": "string"
}'{
"result": {
"actionId": "4a2794ff-94cb-4bac-8d36-d5fb36c563a0",
"status": "BOT_ACTION_STATUS_UNSPECIFIED",
"error": "string"
}
}