Teleforge API Reference - v0.1.0
    Preparing search index...

    Function createFlowCallback

    • 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.

      Parameters

      Returns TelegramInlineKeyboardButton

      const button = createFlowCallback(
      { text: "Confirm", flowId: "task-shop", action: "confirm" },
      "secret"
      );