Skip to content

Seyed-Cj/TelegramBot-FastAPI-Panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot Control Panel

A simple FastAPI-based web panel to manage a Telegram bot (turn on/off) with persistent status.

Features

  • Start/stop the bot via HTTP endpoints
  • Check current bot status
  • Simple web panel via static files

Installation

  1. Clone the repository:
git clone https://github.com/Seyed-Cj/TelegramBot-FastAPI-Panel.git
cd TelegramBot-FastAPI-Panel
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
python main.py
  1. Access the web panel at http://127.0.0.1:8000

API Endpoints

  • 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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors