Skip to content

Frequently Asked Questions

Is miniproto stable enough for production?

Section titled “Is miniproto stable enough for production?”

miniproto is in Alpha, and the release notes advise against production use. The public API and operational defaults may change, including through breaking changes.

Which Python versions and platforms are covered?

Section titled “Which Python versions and platforms are covered?”

Package metadata requires Python 3.13 or newer. Repository automation covers standard CPython 3.13, 3.14 and 3.15, plus free-threaded CPython 3.14t and 3.15t with the GIL disabled. CPython 3.13t is outside the supported line. Check the PyPI distribution files for your interpreter and platform. See Development Commands for current native and wheel checks.

What happens when the Rust native layer is unavailable?

Section titled “What happens when the Rust native layer is unavailable?”

The bundled native extension handles operations when it has the required capability. Protected-session AES-GCM and Scrypt use cryptography when that native capability is unavailable. Transport and TL code also have Python implementations for supported paths. Malformed network messages and failed cryptographic authentication do not trigger a retry through another backend. Test the wheel and runtime you plan to deploy because fallback support varies by operation.

Are bot and user accounts interchangeable?

Section titled “Are bot and user accounts interchangeable?”

User accounts sign in through a phone-code flow and may require a two-step password. Bots sign in with a BotFather-issued bearer token. miniproto saves the account identity, but bot authorization does not grant user-account capabilities. Telegram still controls a bot’s peer access and permissions. See Phone, Bot and 2FA Authorization for both flows.

Can miniproto bypass Telegram limits or FloodWait?

Section titled “Can miniproto bypass Telegram limits or FloodWait?”

Telegram controls peer permissions, rate limits, file limits and flood waits. Client.invoke() and high-level operations apply configured timeouts, retry rules and flood-wait policies. They may sleep through eligible short waits, but can still raise FloodWait or another classified RpcError. Force retries for a write only when the operation is idempotent or Telegram deduplicates it. A quick acknowledgement confirms transport receipt, not RPC completion.

Treat session strings as credentials. Protected native strings use a passphrase-derived key and authenticated encryption. Plain native, Telethon and Pyrogram strings are bearer encodings, and each format preserves different fields. Import requires a disconnected client and refuses non-empty storage unless you set replace=True. Store the string and passphrase separately, never log them, and read Session Security before migration or backup work.

Throughput depends on native support, fallback selection, transfer size, disk and memory pressure, account type, data center, Telegram throttling and network conditions. Use the deterministic smoke commands in Run Deterministic Benchmarks to compare local changes. Treat credentialed Telegram benchmarks as observations and record the environment for each run.

miniproto handles authorization, sessions, MTProto transports, generated raw API access, update recovery, peer/access-hash handling and media transfers. The planned mpgram package adds routers, filters, decorators, middleware, commands, plugins, conversations and higher-level APIs. See the main miniproto documentation for both package roles.