import { configureRedaction } from "../../core/redaction.js";
export function configureChannelRuntime(config) {
    configureRedaction(config.telegramRedactPatterns);
}
export function createTextQueueStatusAdapter(runtime) {
    return {
        send: async (_contextKey, context, text) => {
            const result = await runtime.sendMessage(context, { text, fallbackText: text });
            return result.messageId;
        },
        edit: async (_contextKey, context, messageId, text) => {
            await runtime.editMessage(context, String(messageId), { text, fallbackText: text });
        },
    };
}
