Skip to content

miniproto.tl.codec.encode_int

encode_int(value: int) -> bytes

Encode a signed TL int.

Parameters:

  • value (int) – Integer to encode.

Returns:

  • bytes – Four little-endian TL bytes.