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

    Interface CommandContext

    interface CommandContext {
        bot: BotInstance | null;
        reply: (text: string, options?: ReplyOptions) => Promise<TelegramMessage>;
        replyWithWebApp: (
            text: string,
            buttonText: string,
            url: string,
        ) => Promise<TelegramMessage>;
        state: Record<string, unknown>;
        update: TelegramUpdate;
        args: string[];
        chat: TelegramChat;
        command: string;
        message: TelegramMessage;
        user: TelegramUser;
    }

    Hierarchy (View Summary)

    Index

    Properties

    bot: BotInstance | null
    reply: (text: string, options?: ReplyOptions) => Promise<TelegramMessage>
    replyWithWebApp: (
        text: string,
        buttonText: string,
        url: string,
    ) => Promise<TelegramMessage>
    state: Record<string, unknown>
    args: string[]
    command: string