Introduction
TGbot Laravel is a high-performance package for building Telegram bots on Laravel. It uses Go to process webhooks and provides maximum performance when handling a large number of updates.
Key Features
Section titled “Key Features”⚡ High Performance
Section titled “⚡ High Performance”- Using Go for fast webhook processing
- Optimized queue and rate limiting handling
- Support for asynchronous message sending
🎯 Convenient Routing
Section titled “🎯 Convenient Routing”- API similar to Laravel Router
- Support for all Telegram update types
- Route grouping and middleware
📦 Flexible Configuration
Section titled “📦 Flexible Configuration”- Support for multiple bots
- Operation modes: Webhook and Polling
- Configuration through config files
🔄 State Management
Section titled “🔄 State Management”- Chat and user states
- Simple API for working with conversations
- Route filtering by states
🛡️ Middleware
Section titled “🛡️ Middleware”- Middleware system for routes
- User authorization
- Logging and rate limiting
Requirements
Section titled “Requirements”- PHP ^8.4
- Laravel ^11.0
- Composer
What’s Next?
Section titled “What’s Next?”- Installation — install the package in your project
- Configuration — configure the package for your bot
- Routing — create your first handlers