A Telegram inline bot that generates embeds for video URLs from YouTube, Instagram, Twitter, TikTok, and many other platforms.
- Get a bot token from @BotFather
- Copy
example.envto.envand add yourBOT_TOKEN - Run the bot:
uv run --upgrade main.pyType @your_bot_name <video_url> in any Telegram chat to generate an embed.
Edit .env file:
BOT_TOKEN: Your Telegram bot token (required)YTDL_WORKERS: Comma-separated list of worker URLs (optional)PO_TOKEN: YouTube po_token for enhanced access (optional)COOKIES_BROWSER&COOKIES_PROFILE: Browser cookies for restricted content (optional)
The project includes a Vercel-compatible worker API in the worker/ directory that can be deployed and used in YTDL_WORKERS to avoid rate limits.
yt-dlp: Video information extractionpython-telegram-bot: Telegram Bot API wrapper