Telegram Bot icon

Telegram Bot

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

Actions101

Payment → Answer Shipping Query

AI-generated

Summary

Answer a shipping query by confirming whether delivery to the specified address is possible and optionally providing shipping options or an error message.

Inputs

  • Shipping Query ID (required) — Provide the unique identifier for the shipping query to respond to.
  • OK (required) — Specify whether delivery to the specified address is possible (true or false).
  • Shipping Options (JSON) — Optionally provide a JSON array of ShippingOption objects to offer possible shipping methods if delivery is possible.
  • Error Message — Optionally provide an error message if delivery to the specified address is not possible (when OK is false).

Output shape

a single response object indicating the result of the answerShippingQuery request

The output includes the result from the Telegram API's answerShippingQuery method, reflecting success or error details. If multiple input items are processed, outputs are returned as separate items in the output array.

Examples

Example 1: Responding to a shipping query confirming delivery is available with shipping options

Set the Shipping Query ID and set OK to true; optionally include a Shipping Options JSON array.

Example 2: Responding to a shipping query denying delivery due to invalid address

Set the Shipping Query ID and set OK to false, then provide an error message describing the issue.

Links

Discussion