v1

latestOpenAPI 3.0.12026-07-24116117186.3 KB
Messages

Add base Telegram bot message

The method is used for creating basic Telegram bot messages.

post/api/v1/messages/telegram

Request body

idinteger

Message ID.

namestring required

Message name.

languageCodestring

Language code.

tagsstring[]

List of tags.

subscriptionsKeysstring[]

Subscription categories keys, assigned to a message.

languagesstring[]

An array with the language codes for multilingual messages. Available for the GET method only.

textstring
imageSourcestring

Image URL for a single image in a message.

Example request

{
  "imageSource": "https://www.example.com/images/sample.jpg",
  "buttons": [
    {
      "callbackData": "callback|211|||goto|212|82/scanpack"
    }
  ],
  "translations": [
    {
      "imageSource": "https://www.example.com/images/sample.jpg",
      "buttons": [
        {
          "callbackData": "callback|211|||goto|212|82/scanpack"
        }
      ]
    }
  ]
}