This repository contains the code for a Python-based Telegram bot. This bot interacts with the Fooocus API to generate and preview images.
- 🤖 Telegram Bot Integration
- 🎨 Image Generation with Fooocus API
- 🔍 Image Preview Functionality
- Python 3.x
- Telegram Bot Token
- Fooocus API Key
git clone [email protected]:dzhusipov/fooocus-telegram.git
cd fooocus-telegram
pip install psycopg2 requests python-telegram-bot python-dotenv
Set your Telegram Bot Token and Fooocus API Key in .env file:
FOOOCUS_IP = 0.0.0.0
FOOOCUS_PORT = 8080
BOT_TOKEN = YOUR_BOT_TOKEN
ADMIN_ID = 123123123123
GROUP_ID = -123123123123123
# Database
PG_DB = postgres
PG_PASS = 1234567890
PG_USER = postgres
PG_HOST = localhost
python main.py
Contributions, issues, and feature requests are welcome!
Distributed under the MIT License. See LICENSE.md for more information.
Telegram: @DrunkSausage