Mengheang25/HeaNg-Black-Cyber-AI-bot ? reverse-engineered prompt

Reverse engineered prompt

Build me a Telegram AI bot that replies to messages with AI generated answers and remembers the conversation history for each user.

It should have a simple /start command that sends a welcome message, and a /history command that shows the last 20 messages from that chat. Store users and conversations in SQLite so the bot keeps working after restarts. Use environment variables for the Telegram token and the AI API key, and make it easy to run locally with one command. I also want it set up so I can deploy it on Render without much extra work.

Please make the code clean, add basic error handling, and include a sample .env file plus clear setup steps in the README. If you need to check current docs for the Telegram bot library or the AI API, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab