pub async fn deliver_announcement(
config: &Config,
channel: &str,
target: &str,
thread_id: Option<String>,
output: &str,
) -> Result<()>Expand description
Deliver a cron job announcement to a configured channel. Scans for credential leaks before delivery.
thread_id is forwarded to channels whose outbound thread_id is distinct
from the recipient (notably the webhook channel, which serialises both into
the JSON callback). For channels that do not honour thread_ts it is a
harmless no-op.