Creates a signed callback button for chat-side flow steps.
The encoded payload is kept within Telegram's callback-data limit and throws when the supplied flow data cannot fit safely.
const button = createFlowCallback( { text: "Confirm", flowId: "task-shop", action: "confirm" }, "secret"); Copy
const button = createFlowCallback( { text: "Confirm", flowId: "task-shop", action: "confirm" }, "secret");
Creates a signed callback button for chat-side flow steps.
The encoded payload is kept within Telegram's callback-data limit and throws when the supplied flow data cannot fit safely.