Skip to content

miniproto.tl.codec.encode_int128

encode_int128(value: int) -> bytes

Encode an unsigned 128-bit TL integer.

Parameters:

  • value (int) – Integer in the inclusive range 0 through 2**128 - 1.

Returns:

  • bytes – Sixteen little-endian bytes.