---
title: "Add base telegram bot message"
method: POST
path: "/api/v1/messages/telegram"
tags: ["Messages"]
---

# Add base telegram bot message

`POST /api/v1/messages/telegram`

## Request

- Base URL: `https://yespo.io` (the document declares no server; this is the origin it was published from)
- URL: `https://yespo.io/api/v1/messages/telegram`
- Auth: HTTP basic

The method is used for creating basic telegram bot messages.

## 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.dev/yespo/apis/yespo-api.md) · [All operations](https://skmtc.dev/yespo/apis/yespo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yespo/apis/yespo-api/revisions/b662f92b6c40?raw)
