Skip to content

miniproto.tl.codec.encode_long

encode_long(value: int) -> bytes

Encode a signed TL long.

Parameters:

  • value (int) – Integer to encode.

Returns:

  • bytes – Eight little-endian TL bytes.