export default { async fetch(request) { if (request.method !== "POST") { return new Response("ST Auto OTT Bot is running ✅"); } try { const update = await request.json(); // Channel me video upload detect if (update.channel_post && update.channel_post.video) { const video = update.channel_post.video; const fileId = video.file_id; const caption = update.channel_post.caption || "No Title"; console.log("🎬 New Video Uploaded"); console.log("File ID:", fileId); console.log("Title:", caption); // 👉 Yahin future me: // Firebase / JSON / App API call add ho sakta hai } return new Response("OK"); } catch (e) { return new Response("Error", { status: 500 }); } } };