A simple FastAPI-based web panel to manage a Telegram bot (turn on/off) with persistent status.
- Start/stop the bot via HTTP endpoints
- Check current bot status
- Simple web panel via static files
- Clone the repository:
git clone https://github.com/Seyed-Cj/TelegramBot-FastAPI-Panel.git
cd TelegramBot-FastAPI-Panel- Install dependencies:
pip install -r requirements.txt- Run the application:
python main.py- Access the web panel at http://127.0.0.1:8000
GET /bot/status– Check bot status (active/inactive)POST /bot/on– Turn the bot on (requires admin token)POST /bot/off– Turn the bot off (requires admin token)