Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Payment → Answer Pre Checkout Query

AI-generated

Summary

Respond to a Telegram pre-checkout query by indicating whether the bot is ready to proceed with the order, optionally providing an error message upon failure.

Inputs

  • Pre-Checkout Query ID (required) — Unique identifier for the query to be answered.
  • OK (required) — Boolean flag indicating whether the bot is ready to proceed with the order (true for success, false for failure).
  • Error Message — An optional error message returned if the bot is not ready to proceed (when OK is false).

Output shape

A single JSON object reflecting the Telegram API response to the pre-checkout query.

The node returns Telegram's API response wrapped as JSON. Use this operation within payment workflows to confirm or reject the checkout step before finalizing the payment.

Links

Discussion