Skip to content

miniproto.tl.codec.encode_bytes

encode_bytes(value: bytes) -> bytes

Encode TL’s length-prefixed, padded byte-string value.

Parameters:

  • value (bytes) – Raw byte value.

Returns:

  • bytes – TL byte-string encoding including its length and padding.