Teleforge API Reference - v0.1.0
    Preparing search index...

    Interface BotRuntime

    interface BotRuntime {
        bindBot: (bot: BotInstance) => void;
        getCommands: () => RegisteredCommand[];
        handle: (update: TelegramUpdate) => Promise<void>;
        registerCommands: (commands: Iterable<BotCommandDefinition>) => void;
        router: BotRouter;
    }
    Index

    Properties

    bindBot: (bot: BotInstance) => void
    getCommands: () => RegisteredCommand[]
    handle: (update: TelegramUpdate) => Promise<void>
    registerCommands: (commands: Iterable<BotCommandDefinition>) => void
    router: BotRouter