A comprehensive Telegram bot system for Limkokwing University students to check exam results and access academic information, complete with a web-based administration panel.
Limkokwing Bot is an online examination result checking system built as a Telegram bot application. It allows students to quickly access their exam results, academic performance, and faculty information without the need to visit the university's student portal website. The system includes both a Telegram bot interface for students and a web-based administration panel for managing student records, faculties, and modules.
- Exam Result Checking: Students can check their exam results by entering their student ID
- Faculty Listing: View all available faculties with their codes and names
- Interactive Keyboard Menus: User-friendly interface with custom keyboards
- Multi-Faculty Support: Support for 9 different faculties including:
- Faculty of Information & Communication Technology
- Faculty of Architecture & The Built Environment
- Faculty of Business Management & Globalization
- Faculty of Communication, Media & Broadcasting
- Faculty of Design Innovation
- Faculty of Fashion & Lifestyle Creativity
- Faculty of Multimedia Creativity
- Limkokwing Sound & Music Design Academy
- Postgraduate Centre
- Student Information Lookup: Search and display student details
- Error Handling: Comprehensive error messages and validation
- Student Management: Complete CRUD operations for student records
- Add new student information
- View detailed student profiles
- Update existing student data
- Delete student records
- Bulk student data management
- Faculty Management: Full management of university faculties
- Create new faculties
- View faculty details
- Update faculty information
- Delete faculties
- Module Management: Course module administration
- Add new modules
- View module details
- Update module information
- Delete modules
- User Authentication System:
- Secure login/logout functionality
- User registration
- Password reset functionality
- Session management
- Responsive Dashboard: Bootstrap-based modern interface
- Data Validation: Comprehensive input validation and error handling
- Backend: PHP 7.4+
- Database: MySQL 5.7+
- Bot API: Telegram Bot API
- Frontend: HTML5, CSS3, Bootstrap 3.3.7
- JavaScript: jQuery 1.12.4
- HTTP Client: cURL for API communications
- PHP 7.4 or higher
- MySQL 5.7 or higher
- Web server (Apache/Nginx)
- Telegram Bot Token (from @BotFather)
- SSL certificate (required for Telegram webhook)
git clone https://github.com/yourusername/limkokwing-bot.git
cd limkokwing-bot-
Import the database schema:
unzip web-admin/limkokwingbot.sql.zip mysql -u your_username -p your_database < limkokwingbot.sql -
Update database configuration in
web-admin/config.php:define('DB_SERVER', 'your_host'); define('DB_USERNAME', 'your_username'); define('DB_PASSWORD', 'your_password'); define('DB_NAME', 'your_database');
-
Create a new bot with @BotFather
-
Get your bot token
-
Update the bot token in
LimkokwingBot.php:define('API_KEY','YOUR_BOT_TOKEN_HERE');
-
Update database connection in
LimkokwingBot.php:$db = mysqli_connect('localhost','username','password','database');
- Upload files to your web server
- Ensure proper permissions for PHP files
- Set up SSL certificate (required for Telegram webhooks)
curl -X POST "https://api.telegram.org/bot{YOUR_BOT_TOKEN}/setWebhook" \
-d "url=https://yourdomain.com/LimkokwingBot.php"id- Primary keystudent_id- Unique student identifierstudent_name- Full name of studentcourse_name- Program/course nameterm- Academic termcgpa- Cumulative GPAmodule_code_1tomodule_code_6- Module codesmodule_name_1tomodule_name_6- Module namesgrade_1tograde_6- Module grades
id- Primary keyfaculty_code- Faculty codefaculty_name- Faculty name
id- Primary keymodule_code- Module codemodule_name- Module namecredits- Credit hours
id- Primary keyusername- Admin usernamepassword- Hashed passwordcreated_at- Registration timestamp
- Start the bot:
/start - View available commands:
/help - Check exam results:
/examresult - View faculties:
/faculty - Search students:
/student
- Access the admin panel:
https://yourdomain.com/web-admin/ - Login with admin credentials
- Manage student records, faculties, and modules
- Monitor system usage and data
- Input Validation: All user inputs are validated and sanitized
- SQL Injection Prevention: Prepared statements used throughout
- Session Management: Secure session handling for admin panel
- Password Hashing: Admin passwords are properly hashed
- Access Control: Authentication required for admin functions
| Command | Description |
|---|---|
/start |
Initialize the bot and show welcome message |
/help |
Display all available commands |
/faculty |
List all university faculties |
/examresult |
Check exam results by faculty selection |
/student |
View student information |
/result {student_id} |
Get specific student's exam results |
- Ensure all credentials are properly configured
- Set up SSL certificate for webhook security
- Configure web server with proper PHP settings
- Set up database backups
- Monitor logs for any issues
- Use tools like XAMPP/WAMP for local development
- Use ngrok for local webhook testing
- Keep development and production databases separate
Timeline: May 2019 - November 2019
Status: Completed
Type: Final Year Project
Client: Faculty of Information & Communication Technology, Limkokwing University
Developer: Amirtechs
Last Updated: February 2021
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support and inquiries:
- Telegram Channel: @LimkokwingBotNews
- Contact: [Your Contact Information]
- Enhanced web administration panel
- Improved error handling
- Added comprehensive CRUD operations
- Updated security features
- Responsive design improvements
- Initial release
- Basic bot functionality
- Student result checking
- Faculty listing
Note: This project was developed as a Final Year Project for Limkokwing University. Please ensure you have proper permissions and follow your institution's guidelines when deploying similar systems.