Core Features
MadelineProto can do everything official Telegram clients can do, and more:Message Handling
Send, receive, edit, and delete messages with full support for all message types and entities
File Management
Upload and download files of any size with progress tracking and streaming support
VoIP Calls
Make and receive Telegram voice calls with audio streaming capabilities
Secret Chats
End-to-end encrypted secret chats with perfect forward secrecy
Inline Buttons
Create interactive interfaces with inline and reply keyboards
Broadcasting
Send messages to all users, groups, and channels efficiently
Event-Driven Architecture
MadelineProto uses a modern event handler system that makes building bots intuitive:Advanced Capabilities
1. Async Everything
MadelineProto is fully async using AMPHP, allowing you to handle thousands of concurrent operations:- Non-blocking file uploads/downloads
- Parallel message sending
- Concurrent API requests
- Efficient resource utilization
2. Multiple Authentication Methods
- Phone number login (user accounts)
- Bot token login (bot accounts)
- QR code login (user accounts)
- Support for both bots and userbots
3. Rich Media Support
Handle all Telegram media types:- Photos and images
- Videos and animations (GIFs)
- Audio files and voice messages
- Documents and files up to 4GB
- Stickers and custom emojis
- Telegram Stories
4. Advanced Message Features
- Parse modes: Markdown, HTML, and plain text
- Message entities: Mentions, URLs, hashtags, commands
- Reply markup: Inline buttons, keyboards
- Message scheduling: Send messages at specific times
- Silent messages: No notifications
- Protected content: Disable forwarding
5. Database Integration
Optional database backends to reduce RAM usage:6. Filters and Handlers
Powerful filtering system for handling specific updates:7. Plugin System
Extend functionality with reusable plugins:Performance Features
Metrics and Monitoring
MadelineProto can expose Prometheus metrics:/metrics- Prometheus format/debug/pprof- Memory profiling
Cron Jobs
Schedule periodic tasks:Platform Support
- PHP 8.2+ required
- Linux, macOS, Windows support
- Docker images available for linux/amd64, linux/arm64, linux/riscv64
- Web and CLI deployment
Getting Started
Install MadelineProto and start building:Next Steps
Sending Messages
Learn how to send and receive messages
File Operations
Upload and download files efficiently
Broadcasting Guide
Send messages to all your users
API Reference
Complete API documentation