TeleMediaBot (Telegram Media and Product Automation Bot) automates media processing and product creation from messages in a specified Telegram channel.
TeleMediaBot is designed to automate the process of handling incoming messages in a Telegram channel, downloading media, and creating products based on message content.
- Automatic media file download and processing
- Product creation from message content
- Error handling and feedback notifications
- Integration with external alert system
- Python 3.8+
- Telegram API credentials
- Clone the repository:
git clone https://github.com/Great0S/TeleMediaBot.git
- Navigate to the project directory:
cd TeleMediaBot - Create a Virtual Environment: (Development)
python -m venv myenv
- Activating the Virtual Environment: (Development)
Windows:
Linux / Mac:
myenv\Scripts\activate
source myenv/bin/activate - Install the required dependencies:
pip install -r requirements.txt
- Configure your settings in
config/settings.py. - Run the main script:
python tmb.py
Update config/settings.py with your Telegram API credentials and other configuration settings:
phone: Your Telegram account phone number.alert_bot_token: Token for the alert notifaction bot.channel_id: ID of the Telegram channel.session_name: Name for the session file.category_id: Default category ID for products.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Commit your changes (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to the contributors and libraries that made this project possible.