telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Class ApplicationBuilder

    Fluent builder for constructing and configuring Application instances.

    const app = new ApplicationBuilder()
    .token(process.env.BOT_TOKEN!)
    .persistence(new SqlitePersistence({ dbPath: "./data/bot.sqlite" }))
    .build();
    Index
    • Configures optional settings for the underlying Bot client.

      Parameters

      • options: BotOptions

        Bot options (custom fetch, retry limits, apiRoot).

      Returns this

      This builder instance for chaining.

    • Configures the persistence backend for state management.

      Parameters

      Returns this

      This builder instance for chaining.

    • Sets the Telegram bot token received from BotFather.

      Parameters

      • token: string

        The bot token string.

      Returns this

      This builder instance for chaining.