Expand description
MTProto session and transport abstractions.
This crate handles:
- Message framing (sequence numbers, message IDs)
- Plaintext transport (for initial handshake / key exchange)
- Encrypted transport skeleton (requires a crypto backend)
It is intentionally transport-agnostic: bring your own TCP/WebSocket.
Re-exports§
pub use message::Message;pub use message::MessageId;pub use session::Session;pub use encrypted::EncryptedSession;pub use authentication::Finished;pub use authentication::step1;pub use authentication::step2;pub use authentication::step3;pub use authentication::finish;
Modules§
- authentication
- Sans-IO MTProto authorization key generation.
- encrypted
- Encrypted MTProto 2.0 session (post auth-key).
- message
- MTProto message framing types.
- session
- MTProto client session state.
- transport
- Pluggable transport layer.