Concepts
miniproto is an async-first MTProto SDK. These pages describe its protocol, client lifecycle, update and session state, media scheduling and security rules. It does not replace Telegram’s services or provide an application framework.
Core model
Section titled “Core model”- MTProto and the Bot API explains which Telegram protocol miniproto implements and what it permits.
- Architecture and data flow follows an application request through client coordination, storage, sender, transport, framing and Telegram.
- High-level helpers and the raw API separates the small convenience layer from generated TL requests.
- Schema sources lists the inputs and differences behind the generated reference.
Stateful operation
Section titled “Stateful operation”- Session and update state covers encrypted persistence, cursors, duplicates, queues and gap recovery.
- Transport, reliability and replay explains framing, reconnects, quick acknowledgements and ambiguous requests.
- Transfer scheduling explains the per-DC byte budget and fairness model for media work.
- Method FloodWait policy explains cached waits, automatic sleep and when an error remains visible to the caller.
Performance and security boundaries
Section titled “Performance and security boundaries”- Native Rust acceleration and fallback explains capability detection and parity without treating native availability as a performance guarantee.
- Security model explains credential, storage, validation and operational boundaries. For reporting a vulnerability, use the repository’s security and reporting page.