Personal Project: An admin panel to manage the telegram bot in Python Django
Admin Panel Telegram Bot is a Python Django application that provides an admin panel to manage and control a Telegram bot. This admin panel offers various features to efficiently manage the bot and interact with its users.
Sending Message to Specific User: The admin can use the admin panel to send messages to specific users of the Telegram bot. This feature allows personalized communication and targeted messaging.
Sending Announcement to All Users: The admin panel enables the admin to send announcements to all users of the Telegram bot. This feature is useful for broadcasting important information or updates to a large audience.
User Search: The admin can easily search for a specific user using the admin panel. This feature allows quick access to user information and facilitates targeted actions or support.
View Statistics of Users: The admin panel provides statistical insights into the bot’s user activity. It displays daily and monthly graphs/charts to visualize the usage trends and patterns. Additionally, it also provides the total number of users.
Clone the repository:
git clone https://github.com/usmanf07/admin-panel-telegram-bot.git
Change into the project directory:
cd admin-panel-telegram-bot
Create and activate a virtual environment (optional but recommended):
python3 -m venv env
source env/bin/activate
Install the dependencies:
pip install -r requirements.txt
Configure the Telegram bot token:
authentication/telegram_utils.py
file.YOUR_TELEGRAM_BOT_TOKEN
with your actual Telegram bot token in the TOKEN
variable.core/main.py
file.YOUR_TELEGRAM_BOT_TOKEN
with your actual Telegram bot token in the TOKEN
variable.Create sqlite DB and Apply the database migrations:
Create the database named 'admin.db'
python manage.py migrate
Run the development server:
python manage.py runserver
Run the bot server:
core
folder.python main.py
Contributions are welcome! If you would like to contribute to this project, please follow these steps: