Skip to content

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.

  1. Install from PyPI or prepare a source checkout.
  2. Run the five-minute bot quickstart against an account and chat you control.
  3. Choose phone or bot authorization and store durable session material safely.
  4. Make a first raw call, then a first high-level operation.
  5. Use the small runnable examples as starting points rather than copying credentials into source files.

Use a separate protected session path for each account you want to retain. See Session Security.