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

    Client for the subset of Telegram Bot API endpoints used by this app.

    Index
    • Constructs a new client bound to a single bot+chat combination.

      Parameters

      • botToken: string

        Bot token from @BotFather.

      • chatId: string

        Default chat id used by sendHtmlMessage when not overridden.

      Returns default

    • Sends an HTML-parsed message, optionally with an inline keyboard.

      Parameters

      • text: string

        HTML message text (caller must pre-truncate/pre-escape).

      • OptionalreplyMarkup: InlineKeyboard

        Optional inline keyboard rows.

      Returns Promise<void>

      Resolves when the message has been accepted by the Telegram API.

      NetworkError when the Telegram API rejects the request.

    • Registers the bot command list with Telegram.

      Parameters

      • commands: { command: string; description: string }[]

        Command list to register.

      Returns Promise<void>

      Resolves when the command list has been registered with Telegram.

      NetworkError when setMyCommands rejects the request.

    • Fetches pending updates from Telegram starting at the given offset.

      Parameters

      • offset: number

        The update_id offset to pass to getUpdates.

      • timeoutSec: number

        Long-poll timeout in seconds (Telegram-side).

      Returns Promise<Procedure<IPollResult>>

      Procedure with updates and the next offset, or failure on HTTP error.

    • Confirms updates up to the given offset (best-effort, never throws).

      Parameters

      • offset: number

        The offset to confirm.

      Returns Promise<void>

      Resolves when the best-effort acknowledgement completes.

    • Looks up the file_path for a given file_id via getFile.

      Parameters

      • fileId: string

        The Telegram file_id.

      Returns Promise<string | false>

      The file_path string, or false when unavailable.