Max Message icon

Max Message

Send, read, update, and answer callbacks for MAX messages

Answer Callback Query

AI-generated

Summary

Send an answer to a callback query by providing its ID and optionally displaying a notification text to the user.

Inputs

  • Callback Query ID (required) — The unique identifier of the callback query to answer.
  • Response Text — Optional notification text to display to the user upon answering the callback query.

Output shape

a JSON object representing the success response from the Max API after answering the callback query

The operation requires a valid Callback Query ID and returns the API's acknowledgement or error in JSON format. The Response Text parameter is optional and if provided, appears as a notification to the user.

Examples

Example 1: Answer a callback query with a notification

Provide the Callback Query ID identifying the callback and a text message for the notification to show to the user.

Links

Discussion