diff --git a/src/cli/multi-relay.ts b/src/cli/multi-relay.ts index aad7a9c02..f96fee7fa 100644 --- a/src/cli/multi-relay.ts +++ b/src/cli/multi-relay.ts @@ -59,7 +59,7 @@ export async function runMultiProviderRelay( undefined, runtime, signal, - opts.webTuning, + { ...opts.webTuning, suppressStartMessage: true }, ); } else if (provider === "twilio") { const { monitorTwilio } = await import("../twilio/monitor.js"); diff --git a/src/telegram/monitor.ts b/src/telegram/monitor.ts index dad0051a5..75113b284 100644 --- a/src/telegram/monitor.ts +++ b/src/telegram/monitor.ts @@ -213,7 +213,9 @@ export async function monitorTelegramProvider( verbose, }; - runtime.log(info("📡 Starting Telegram relay...")); + if (!suppressStartMessage) { + runtime.log(info("📡 Starting Telegram relay...")); + } // Create and initialize provider const provider = await createInitializedProvider("telegram", providerConfig); diff --git a/src/web/auto-reply.ts b/src/web/auto-reply.ts index b04480826..f518f2b6d 100644 --- a/src/web/auto-reply.ts +++ b/src/web/auto-reply.ts @@ -66,6 +66,7 @@ export type WebMonitorTuning = { replyHeartbeatMinutes?: number; replyHeartbeatNow?: boolean; sleep?: (ms: number, signal?: AbortSignal) => Promise; + suppressStartMessage?: boolean; }; const formatDuration = (ms: number) => @@ -1246,10 +1247,12 @@ export async function monitorWebProvider( } } - logInfo( - "📡 Listening for personal WhatsApp Web inbound messages. Leave this running; Ctrl+C to stop.", - runtime, - ); + if (!tuning.suppressStartMessage) { + logInfo( + "📡 Listening for personal WhatsApp Web inbound messages.", + runtime, + ); + } if (!keepAlive) { await closeListener();