zDany01/PyTG — reverse-engineered prompt
Reverse engineered prompt
Build me a Python Telegram bot I can run on my Linux server so I can manage it remotely from Telegram.
It should only answer approved chat IDs, let me check basic server status, run maintenance scripts from a chosen scripts folder, and trigger a backup script with optional arguments. I also want it to track backup state with a flag file. Please add an optional heartbeat feature that hits a URL every so often, can stop after too many failures, and can optionally log successful checks too.
Make it easy to configure with a template config file for the bot token, allowed chats, message length, paths, and heartbeat settings. I want simple install, start, and uninstall scripts so I can either run it as a background service or start it manually with a wrapper script. It should assume root access is needed for system tasks, and only load scripts from the scripts folder if they are executable.
If anything is unclear, look up current Telegram bot docs online and make sensible choices.
Want more depth? Deep Reverse