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

    Long-polls the Telegram Bot API for updates and dispatches them to a handler.

    Index
    • Creates a TelegramPoller for the given bot and chat.

      Parameters

      • botToken: string

        The Telegram Bot API token.

      • chatId: string

        The chat ID to filter from.

      • onMessage: TextHandler

        Async callback for text messages and callback data.

      Returns default

    • Sets an optional photo handler for receipt import.

      Parameters

      • handler: PhotoHandler

        Callback invoked with file_id (and optional caption) on photo.

      Returns void

      Nothing — this is a side-effecting setter.

    • Starts the long-poll loop, blocking until stop() is called. Clears any old pending messages before entering the loop. Supersedes a run that is still in progress.

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

      Procedure indicating the poll loop has ended.

    • Stops the poller and confirms all processed updates with Telegram so a future getUpdates does not replay them.

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

      Procedure indicating the flush status.