Skip to content

dddmmm5/fooocus-telegram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot for Fooocus

alt img

Overview

This repository contains the code for a Python-based Telegram bot. This bot interacts with the Fooocus API to generate and preview images.

Features

  • 🤖 Telegram Bot Integration
  • 🎨 Image Generation with Fooocus API
  • 🔍 Image Preview Functionality

Requirements

  • Python 3.x
  • Telegram Bot Token
  • Fooocus API Key

Installation

git clone [email protected]:dzhusipov/fooocus-telegram.git
cd fooocus-telegram
pip install psycopg2 requests python-telegram-bot python-dotenv

Usage

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 

Run the bot:

python main.py

Contributing

Contributions, issues, and feature requests are welcome!

License

Distributed under the MIT License. See LICENSE.md for more information.

Contact

Telegram: @DrunkSausage

About

Telegram bot for Fooocus-API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.3%
  • Shell 2.2%
  • Dockerfile 1.5%