- Notifications
You must be signed in to change notification settings - Fork15
framebot Framework is a powerful and flexible open-source framework designed to simplify the creation and management of Telegram bots. Whether you're a seasoned developer or just starting out, framebot Framework provides the tools you need to build feature-rich bots with ease.
License
alirezajavadigit/framebot
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Modern PHP Framework for Telegram Bot Development & Database Management
Fast ·Secure ·Eloquent-style ORM ·Telegram API First
- Eloquent-style ORM - Familiar Active Record implementation
$user = User::find(1)->update(['username' =>'framebot_user']);
- Migrations System - Version-controlled database schema management
- Relationship Support - HasMany, BelongsTo, Polymorphic relations
- Auto-Send Architecture - RAII pattern for seamless API calls
Message::chatId($this->chatID)->text("welcome to my telegram bot");// Automatically sends on destruct
- 📍 Locations & Venues
- 🎲 Interactive Dice/Polls
- 💌 Media Groups & Paid Content
- 🎭 Message Reactions
- Dotenv Implementation - Secure credential management
- Auto-Sanitization - Built-in parameter validation
- Request Throttling - Protection against API abuse
- PHP 8.0+
- Composer
- MySQL
git clone https://github.com/alirezajavadigit/framebot.gitcd framebotcomposer installcp .env.example .env
# Telegram ConfigurationTOKEN=your_bot_token_hereAPP_ENV=production# Database SettingsDB_HOST=127.0.0.1DB_NAME=framebotDB_USERNAME=rootDB_PASSWORD=
We welcome contributions! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit changes (
git commit -m 'Add some amazing feature'
) - Push to branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Contribution Guidelines:
- Follow PSR-12 coding standards
- Include PHPDoc comments
- Add unit tests for new features
- Update documentation accordingly
- GitHub Discussions - Q&A and general help
- Telegram Channel - Announcements & updates & Q&A
MIT License - SeeLICENSE for full text
Created with ❤️ byAlireza Javadi
Part of the Open Source Telegram Bot Ecosystem 🤖
About
framebot Framework is a powerful and flexible open-source framework designed to simplify the creation and management of Telegram bots. Whether you're a seasoned developer or just starting out, framebot Framework provides the tools you need to build feature-rich bots with ease.