ATM can only fetch Photos, Animations (GIFs) and videos from rule34 site and danbooru
TODO...
- Python 3.10+
- aiogram
- aiohttp
- python-dotenv
-
Clone the repository:
git clone
-
Navigate to the project directory:
cd milfbot -
(Recommended) Create a virtual environment:
python3 -m venv venv source venv/bin/activateOr adaptive it for your system/shell
-
Install dependencies:
pip install -r requirements.txt
-
Copy
.env.exampleto.env:cp .env.example .env
-
Enter your Telegram bot token:
- Open the
.envand replaceBOT_TOKEN=YOUR_TELEGRAM_BOT_TOKENwith your actual bot token.
- Open the
-
(Optional) Use a custom API endpoint:
- If you want to use your own service or a different mirror, modify the corresponding URL variables (e.g.
RULE34_URL,DANBOORU_URL, etc.) in your.envfile. - You can add new variables for other services as needed and update the
- If you want to use your own service or a different mirror, modify the corresponding URL variables (e.g.
-
Run the script:
python main.py
-
Make sure that your bot using inline mode!
-
Enter your Telegram chat
-
Start writing message
- example:
@YOURBOT pic/vid/gif r34/danbooru [TAGS]Note: Danbooru restricts tag searches for users without an upgraded account.
You can only use one tag per search unless you have a gold danbooru profile.
If you use more tags, you may get an error and empty results
- example:
We welcome contributions to MiLF Bot!
If you have ideas, bug reports, or feature requests, please open an issue.
- Fork the repository and create your branch from
main. - Make your changes (code, documentation, tests).
- Ensure your code follows project style and passes all checks.
- Submit a pull request with a clear description of your changes.
If you need help, feel free to open an issue or start a discussion.
Thank you for helping improve MiLF Bot!