Reverse engineered prompt

GitHub

Build me a Telegram bot for a file sharing or movie group that can automatically index files from the channels and groups I choose, save everything in MongoDB, and let users search and get results quickly inside Telegram. I want auto filter replies, caption based matching, searchable file listings, and the ability to share files through the bot with streaming links or download links when enabled. If possible, include movie details from TMDB or Telegraph when available.

It should also have the common control features people expect, like force subscribe, request to join support, a simple multi step verification flow, premium user support, referral tracking, auto delete options, logs, stats, and admin tools for broadcast, user ban or unban, maintenance mode, and enabling or disabling chats.

Please make it easy to configure with environment variables and include a clear sample env file. I want it to run locally and also be easy to deploy with Docker or a simple cloud host. If you need to, look up the current Telegram and Mongo docs online and use sensible defaults.

Have a live product UI? Try website reverse