miniproto.tl
miniproto.tl
Section titled “miniproto.tl”Public TL primitive and object codec APIs.
Public objects
Section titled “Public objects”BOOL_FALSE_ID— Public attributeminiproto.tl.codec.BOOL_FALSE_ID.BOOL_TRUE_ID— Public attributeminiproto.tl.codec.BOOL_TRUE_ID.TLCodecError— Raised when TL wire data, types, or generated metadata cannot be encoded or decoded.VECTOR_CONSTRUCTOR_ID— Public attributeminiproto.tl.codec.VECTOR_CONSTRUCTOR_ID.decode_bool— Decode a TLBoolconstructor.decode_bytes— Decode a TL length-prefixed byte string.decode_constructor_id— Decode an unsigned TL constructor identifier.decode_double— Decode a TLdouble.decode_int— Decode a signed TLint.decode_int128— Decode an unsigned 128-bit TL integer.decode_int256— Decode an unsigned 256-bit TL integer.decode_long— Decode a signed TLlong.decode_object— Decode a primitive or generated TL object selected by its constructor.decode_string— Decode a UTF-8 TL string.decode_uint— Decode an unsigned 32-bit TL value.decode_vector— Decode a boxed TL vector.deserialize_object— Deserialize one generated TL object of an expected class.encode_bool— Encode a TLBoolconstructor.encode_bytes— Encode TL’s length-prefixed, padded byte-string value.encode_constructor_id— Encode a TL constructor identifier as an unsigned 32-bit value.encode_double— Encode a TLdouble.encode_int— Encode a signed TLint.encode_int128— Encode an unsigned 128-bit TL integer.encode_int256— Encode an unsigned 256-bit TL integer.encode_long— Encode a signed TLlong.encode_string— UTF-8 encode a string as a TL byte string.encode_uint— Encode an unsigned 32-bit TL value.encode_vector— Encode a boxed TL vector.serialize_object— Serialize a generated TL object using its generated or generic metadata path.