---
title: "Receive a Telegram message to Xovris"
url: https://xovris.ai/docs/api/operations/postalertstelegramwebhook/
---

# Receive a Telegram message to Xovris

`POST /v1/alerts/telegram/webhook`

Open to anyone, so no Idempotency-Key is kept: nobody is signed in to keep it for, and replaying one caller's answer to another would hand it over.

No token needed: anyone may call this.

## Request body

### `application/json`

- `update_id` (number, required)
- `message` (T2f6c4643d10f)
  - `message_id` (number, required)
  - `text` (string)
  - `chat` (object, required)
  - `reply_to_message` (object)
- `callback_query` (Tb501f0f69aa9)
  - `id` (string, required)
  - `data` (string)
  - `message` (object)

Example:

```json
{
  "update_id": 1,
  "message": {
    "message_id": 1,
    "text": "string",
    "chat": {
      "id": "string"
    },
    "reply_to_message": {
      "message_id": 1
    }
  },
  "callback_query": {
    "id": "string",
    "data": "string",
    "message": {
      "chat": {
        "id": "string"
      }
    }
  }
}
```

## Answers

- `200`: Done. (application/json: object)
- `404`: Nothing with that id here, or it belongs to another workspace. Nothing was changed. (application/json: Problem)
- `default`: Any other refusal or failure. The answer says what happened and what to do next. (application/json: Problem)

## A call

The address is https://api.xovris.ai/v1/alerts/telegram/webhook - put your own value in place of each part in braces.

```sh
curl --request POST \
  --url 'https://api.xovris.ai/v1/alerts/telegram/webhook' \
  --header 'Content-Type: application/json' \
  --data '{"update_id":1,"message":{"message_id":1,"text":"string","chat":{"id":"string"},"reply_to_message":{"message_id":1}},"callback_query":{"id":"string","data":"string","message":{"chat":{"id":"string"}}}}'
```
