Generated Telegram API types, functions and enums.
This crate is auto-generated from the TL schema files in tl/.
To update for a new API layer, replace tl/api.tl and rebuild.
Overview
| Module | Contents |
|---|---|
[types] |
Concrete constructors (bare types) as structs |
[functions] |
RPC functions as structs implementing [RemoteCall] |
[enums] |
Boxed types as enums implementing [Deserializable] |
Raw API usage
use ;
let req = SendCode ;
let bytes = req.to_bytes;
// Send `bytes` over an MTProto connection…
Updating to a new layer
- Replace
tl/api.tlwith the new schema. cargo build— the build script regenerates everything.