messages

Answer on callback

Changed on

This method should be called to send an answer after a user has clicked the button. The answer may be an updated message or/and a one-time user notification.

post/answers

Request

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

Query parameters

callback_idstring required

Identifies a button clicked by user. Bot receives this identifier after user pressed button as part of MessageCallbackUpdate

Request body

notificationstring nullable

Fill this if you just want to send one-time notification to user

Response

Success or not result

successboolean required

true if request was successful. false otherwise

messagestring

Explanatory message if the result is not successful

Changes

    • breaking

      for the query request parameter callback_id, the minLength was increased from 0 to 1

    • breaking

      added the pattern ^(?!\s*$).+ to the query request parameter callback_id

    • info

      added the new optional request property /////

    • info

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