Reverse engineered prompt

I want a Telegram auto filter bot for movie and file sharing, using this repo as the base, and I want it working end to end. The bot should index files, let people search in groups and private chat, auto send or stream results, support big files, and have a clean settings flow for each group. Please include the premium side too, like plans, my plan, add or remove premium users, refer and earn, verified users, forced join support, welcome messages, spell correction, trending and top searches, and auto cleanup for old or low quality files like camrip or predvd.

Admins and group owners should be able to manage settings, broadcasts, bans, group enable or disable, delete files, and basic stats and user info commands. Make sure verification works properly and settings can be controlled from bot PM when needed.

Please wire up the database, commands, and deployment setup so it can actually run without missing pieces. If anything is unclear, check current Telegram bot docs online and make sensible choices.

Want more depth? Deep Reverse