messages

Construct message

Changed on

Sends answer on construction request. Answer can contain any prepared message and/or keyboard to help user interact with bot.

post/answers/constructor

Request

  • Base URL
    https://botapi.tamtam.chat
  • URL
    https://botapi.tamtam.chat/answers/constructor
  • Auth
    API key in query parameter access_token

Query parameters

session_idstring required

Constructor session identifier

Request body

allow_user_inputboolean

If true user can send any input manually. Otherwise, only keyboard will be shown

hintstring nullable

Hint to user. Will be shown on top of keyboard

datastring

In this property you can store any additional data up to 8KB. We send this data back to bot within the next construction request. It is handy to store here any state of construction session

placeholderstring nullable

Text to show over the text field

Response

Success or not result

successboolean required

true if request was successful. false otherwise

messagestring

Explanatory message if the result is not successful

Changes

    • info

      added highlighted discriminator mapping keys to the /// request property

    • info

      removed code discriminator mapping keys from the /// request property

    • breaking

      the //////// request property's minLength was increased from 0 to 1

    • warning

      removed the request property //

    • warning

      removed the request property //

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      the request property // became optional

    • info

      the request property // became optional