Generate videos from prompts using multimodalart/self-forcing, upload them to Gofile, and send them directly to a Telegram group with message link support. All wrapped in a sexy Node.js + Express API.
TELEGRAM_BOT_TOKEN=your_bot_token_hereapt-get update && apt-get install -y ffmpeg && npm installnode index.jsGenerate a video from a prompt and send it to Telegram.
GET /generate-video?prompt=elon%20musk%20vs%20zuckerbergcurl "https://your-render-app.onrender.com/generate-video?prompt=elon%20musk%20vs%20zuckerberg"{
"url": "https://gofile.io/d/abc123",
"message": "Sent to group successfully.",
"link": "https://t.me/codewithprakhar/87"
}- ✅ Prompt-based video generation via HuggingFace
- ✅ FFmpeg download of M3U8 streams
- ✅ Gofile upload (no API key needed)
- ✅ Telegram bot sends video to group
- ✅ Response includes direct Telegram message link
- Make sure your Telegram bot is an admin in the group.
@codewithprakharmust be a public group, or message links won't work..envfile should never be committed.
🎥 Prompt: elon musk vs zuckerberg (MP4 video sent to group)
- FFmpeg not found? Add it in Render build setup or use a Docker image that includes it.
- Telegram errors? Make sure the bot has permission to send videos.
- Gofile upload failed? Retry or check size limits.
- Video Gen: multimodalart/self-forcing
- Upload: Gofile.io
- Messaging: Telegram Bot API
Made with ❤️ by Prakhar Doneria
