---
title: "Send action"
method: POST
path: "/chats/{chatId}/actions"
tags: ["chats"]
---

# Send action

`POST /chats/{chatId}/actions`

## Request

- Base URL: `https://botapi.tamtam.chat`
- URL: `https://botapi.tamtam.chat/chats/{chatId}/actions`
- Auth: API key in query parameter `access_token`

Send bot action to chat.

## Path parameters

- `chatId` integer, required

## Request body

- ActionRequestBody
  - `action` 'typing_on' | 'sending_photo' | 'sending_video' | 'sending_audio' | 'sending_file' | 'mark_seen', required: Different actions to send to chat members

## Response `200`

Success or not result

- SimpleQueryResult: Simple response to request
  - `success` boolean, required: `true` if request was successful. `false` otherwise
  - `message` string: Explanatory message if the result is not successful

## Other responses

- `401`: Authorization Error. No `access_token` provided or token is invalid
- `500`: Internal Server Error

## Changes

- **2019-09-23** `2ad4f6ad486f`: 1 info
  - added the new `sending_file` enum value to the request property `action`
- **2019-09-19** `357ad3f660f7`: 1 breaking
  - removed the enum value `typing_off` of the request property `action`

[Operation history](https://skmtc.dev/tamtam/apis/tamtam-bot-api/changes/chats/:chatId/actions/post.md)

---

[API](https://skmtc.dev/tamtam/apis/tamtam-bot-api.md) - [All operations](https://skmtc.dev/tamtam/apis/tamtam-bot-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tamtam/apis/tamtam-bot-api/revisions/fa85402ea716?raw)
