A Telegram bot written in Python using the Hydrogram framework, powered by the stablerog.com API for image generation.
This project is released under The Unlicense, which means it is free and unencumbered software dedicated to the public domain. You can use, modify, and copy this code for any purpose without any restrictions.
- Image generation based on text prompts via the stablerog.com API.
- Fully asynchronous Telegram interaction powered by Hydrogram.
- Interactive inline keyboards for user control.
- Administrative Protection: Critical backend management commands (like
/setmoney) are strongly secured. - Advanced Hashing: Passwords undergo multi-layer protection by being encoded into a strict UTF-16BE byte-stream and then processed using the highly collision-resistant SHA3-512 cryptographic algorithm before verification.
- Python 3.14.7
- Clone the project repository:
git clone https://github.com/artem121112111211-coder/BotDenis
cd BotDenis- Install all dependencies with a single command:
pip install -r requirements.txt
⚠️ Important Note for Windows Users: If you encounter a compilation error while installing thetgcryptolibrary, it means your system lacks a C++ compiler. To fix this, download and install Visual Studio Community (or Visual Studio Build Tools) and make sure to check the "Desktop development with C++" workload during installation. Then, try running the pip command again.
- Create a
config.pyfile in the root directory (it is included in.gitignoreand won't be pushed to GitHub) and specify your keys:
API_ID = 'PASTE'
API_HASH = 'THIS'
BOT_TOKEN = 'YOU'
GENERATE_PHOTO = 'DATA'
HASH_ADMIN_PASSWORD = "HASH"- Run the bot:
python main.pyThis project is free and unencumbered software released into the public domain. For more information, please refer to the LICENSE file.