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

    Telegram notification channel — formats and sends import summaries via the Bot API.

    Implements

    Index
    • Sends an inline keyboard menu with a button per bank and an "All banks" button.

      Parameters

      • banks: string[]

        List of bank names to display as inline keyboard buttons.

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

      Procedure indicating the menu was sent or describing the failure.

    • Sends a prompt and polls for the next non-command reply from the chat.

      Parameters

      • prompt: string

        HTML-formatted message to send before waiting.

      • timeoutMs: number

        Maximum milliseconds to wait before throwing a timeout error.

      Returns Promise<string>

      The text content of the first valid reply message.

    • Registers the bot's command list with Telegram via setMyCommands.

      Parameters

      • extras: { command: string; description: string }[] = []

        Additional commands to include beyond the built-in set.

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

      Procedure indicating commands were registered.

    • Downloads a photo from Telegram by its file_id.

      Parameters

      • fileId: string

        The Telegram file_id of the photo to download.

      Returns Promise<Procedure<Buffer<ArrayBufferLike>>>

      Procedure with the image Buffer, or failure.