Israeli Bank Importer - v1.44.5
    Preparing search index...

    Wraps the Telegram Bot API getUpdates / answerCallbackQuery endpoints.

    Index
    • Executes one long-poll HTTP request against getUpdates.

      Parameters

      • offset: number

        The update_id offset to fetch from.

      • signal: AbortSignal

        AbortSignal that allows the caller to cancel the request.

      Returns Promise<PollOutcome>

      Outcome describing the data, HTTP error, or abort.

      Error when fetch rejects for non-abort reasons (caller wraps).

    • Calls getUpdates with offset=-1 to discover the most recent update_id and returns the next offset so the poller skips stale messages.

      Returns Promise<Procedure<{ offset: number }>>

      Procedure with the next offset (0 when no prior updates exist).

    • Sends a best-effort getUpdates call with timeout=0 to acknowledge all processed updates up to the given offset.

      Parameters

      • offset: number

        The offset to acknowledge with Telegram.

      Returns Promise<Procedure<{ status: string }>>

      Procedure with status 'flushed' on 2xx or 'flush-failed-best-effort' otherwise.

    • Acknowledges an inline-keyboard callback query so Telegram removes the spinner from the button. Errors are swallowed (best-effort).

      Parameters

      • queryId: string

        The callback_query_id to acknowledge.

      Returns Promise<Procedure<{ status: string }>>

      Procedure with status 'acked' on 2xx or 'ack-failed-best-effort' otherwise.