Start Here
miniproto is an async-first MTProto protocol SDK for connection management, authorization, sessions, raw invocation, update state and media transfers. The planned mpgram package adds application-framework features. Start with a throwaway bot session, then move to a protected durable session before using a real account.
- Install from PyPI or prepare a source checkout.
- Run the five-minute bot quickstart against an account and chat you control.
- Choose phone or bot authorization and store durable session material safely.
- Make a first raw call, then a first high-level operation.
- Use the small runnable examples as starting points rather than copying credentials into source files.
Every network example requires Telegram API credentials and, where applicable, a bot token or phone account. The examples are not part of the offline test suite. Read Session Security for the durable-session security and portability rules. Read Raw API for Telegram schema provenance and runtime limits.