generated from technolyceum/ai7-m3
60 lines
1.1 KiB
Markdown
60 lines
1.1 KiB
Markdown
# Scheduler Bots
|
|
|
|
This directory contains Telegram scheduler bots that help manage schedules.
|
|
|
|
## Setup Instructions
|
|
|
|
1. Create a virtual environment:
|
|
```
|
|
python -m venv venv
|
|
```
|
|
|
|
2. Activate the virtual environment:
|
|
- On macOS/Linux: `source venv/bin/activate`
|
|
- On Windows: `venv\Scripts\activate`
|
|
|
|
3. Install required packages:
|
|
```
|
|
pip install -r requirements.txt
|
|
```
|
|
|
|
## Running the bots
|
|
|
|
### Method 1: Using Python command (Recommended)
|
|
```
|
|
python telegram_scheduler_v1.py
|
|
```
|
|
or
|
|
```
|
|
python telegram_scheduler_v2.py
|
|
```
|
|
|
|
### Method 2: Direct execution
|
|
Make sure you've activated the virtual environment first:
|
|
```
|
|
source venv/bin/activate # On macOS/Linux
|
|
./telegram_scheduler_v1.py
|
|
```
|
|
or
|
|
```
|
|
./telegram_scheduler_v2.py
|
|
```
|
|
|
|
## Troubleshooting
|
|
|
|
If you encounter "pandas library not found" error:
|
|
|
|
1. Make sure you've activated the virtual environment:
|
|
```
|
|
source venv/bin/activate
|
|
```
|
|
|
|
2. Verify pandas is installed:
|
|
```
|
|
pip list | grep pandas
|
|
```
|
|
|
|
3. If not installed, install requirements:
|
|
```
|
|
pip install -r requirements.txt
|
|
``` |