---
title: "Write in the chat"
method: POST
path: "/api/bot/game/{gameId}/chat"
tags: ["Bot"]
---

# Write in the chat

`POST /api/bot/game/{gameId}/chat`

Post a message to the player or spectator chat, in a game being played with the Bot API.

## Path parameters

- `gameId` string, required

## Response `200`

The message was successfully posted in chat.

- Ok
  - `ok` boolean, required

## Other responses

- `400` — The posting of the message in chat failed.

---

[API](https://skmtc.net/lichess/apis/lichess-org-api-reference.md) · [All operations](https://skmtc.net/lichess/apis/lichess-org-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lichess/lichess-org-api-reference/versions/1425db81eb3b/schema)
