---
title: "Update base Telegram bot message"
method: PUT
path: "/api/v1/messages/telegram/{id}"
tags: ["Messages"]
---

# Update base Telegram bot message

`PUT /api/v1/messages/telegram/{id}`

The method is used for updating the base Telegram bot message.

## Path parameters

- `id` integer, required

## Request body

- BaseTelegramBotMessage
  - `id` integer — Message ID.
  - `name` string, required — Message name.
  - `languageCode` string — Language code.
  - `tags` string[] — List of tags.
  - `subscriptionsKeys` string[] — Subscription categories keys, assigned to a message.
  - `languages` string[] — An array with the language codes for multilingual messages. Available for the GET method only.
  - `text` string
  - `imageSource` string — Image URL for a single image in a message.
  - `buttons` TelegramBotButton[] — Use buttons to implement various actions.
    - `text` string, required — <b>Required parameter.</b><br>Text shown on the button.
    - `link` string — <b>Either this parameter or callbackData is required.</b><br>An URL or a deeplink where user will go if selects the button.
    - `callbackData` string — <b>Either this parameter or link is required.</b><br>CallbackData - data for performing internal commands that redirect the user within the bot.
  - `translations` TelegramBotMessage[] — An array with translations to other languages. Available for the GET method only.
    - `id` integer — Message ID.
    - `name` string, required — Message name.
    - `languageCode` string — Language code.
    - `tags` string[] — List of tags.
    - `subscriptionsKeys` string[] — Subscription categories keys, assigned to a message.
    - `languages` string[] — An array with the language codes for multilingual messages. Available for the GET method only.
    - `text` string
    - `imageSource` string — Image URL for a single image in a message.
    - `buttons` TelegramBotButton[] — Use buttons to implement various actions.
      - `text` string, required — <b>Required parameter.</b><br>Text shown on the button.
      - `link` string — <b>Either this parameter or callbackData is required.</b><br>An URL or a deeplink where user will go if selects the button.
      - `callbackData` string — <b>Either this parameter or link is required.</b><br>CallbackData - data for performing internal commands that redirect the user within the bot.

## Response `200`

---

[API](https://skmtc.net/esputnik/apis/esputnik-com.md) · [All operations](https://skmtc.net/esputnik/apis/esputnik-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/esputnik/esputnik-com/versions/1c4afd7ba72a/schema)
