@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
21 lines (20 loc) • 759 B
TypeScript
import type { OpenClawConfig } from "../config/config.js";
import type { TelegramGroupConfig } from "../config/types.telegram.js";
type TelegramGroups = Record<string, TelegramGroupConfig>;
type MigrationScope = "account" | "global";
export type TelegramGroupMigrationResult = {
migrated: boolean;
skippedExisting: boolean;
scopes: MigrationScope[];
};
export declare function migrateTelegramGroupsInPlace(groups: TelegramGroups | undefined, oldChatId: string, newChatId: string): {
migrated: boolean;
skippedExisting: boolean;
};
export declare function migrateTelegramGroupConfig(params: {
cfg: OpenClawConfig;
accountId?: string | null;
oldChatId: string;
newChatId: string;
}): TelegramGroupMigrationResult;
export {};