diff --git a/supabase/functions/validate-telegram-bot/index.ts b/supabase/functions/validate-telegram-bot/index.ts index b4c02f4..b940bbe 100644 --- a/supabase/functions/validate-telegram-bot/index.ts +++ b/supabase/functions/validate-telegram-bot/index.ts @@ -221,6 +221,7 @@ Deno.serve(async (req) => { headers: { "Content-Type": "application/json", Authorization: `Bearer ${serviceKey}`, + "X-Internal-Secret": Deno.env.get("INTERNAL_FUNCTION_SECRET") ?? "", }, body: JSON.stringify({ agent_instance_id: agent.id }), }).catch((err) => console.error("auto-provision fetch error:", err));