This Telegram bot leverages powerful language models to provide AI-powered functionalities, including text generation, image creation.
- Text generation using GPT-3.5 and LLaMA 3 models
- Image generation with playground-v2.5, kandinsky-3.1, SDXL
- User management and chat history
- Admin broadcast functionality
Before you begin, ensure you have met the following requirements:
- Python 3.7+
- A Telegram Bot Token (obtainable from @BotFather)
- An OpenAI API key
-
Clone this repository:
git clone https://github.com/yourusername/Machine-Man-Bot.git cd Machine-Man-Bot
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the project root and add your credentials:BOT_TOKEN=your_telegram_bot_token OPENAI_API_KEY=your_openai_api_key OPENAI_API_BASE=your_base_link
To start the bot, run:
python main.py
/start
: Initialize the bot and receive a welcome message/help
: Get detailed instructions on how to use the bot/clear
: Clear your conversation history/image1
: Generate an image using the SDXL model/image2
: Generate an image using the Kandinsky 3.1 model/image3
: Generate an image using the Playground v2.5 model/broadcast
: Send a message to all users (admin only)
- Start your message with
!
to use GPT-3.5 for text generation - Start your message with
$
to use LLaMA 3 for text generation
Use the /image1
, /image2
, or /image3
commands followed by your image description.
You can modify the config.py
file to change various settings such as the database name, admin username, and more.
Contributions to improve the bot are welcome. Please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature/amazing-feature
) - Make your changes
- Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Bot Developer - @Alamin_H To use The Demo Try here: @Machine_ManBot