Skip to content

miniproto.tl.codec.encode_constructor_id

encode_constructor_id(value: int) -> bytes

Encode a TL constructor identifier as an unsigned 32-bit value.

Parameters:

  • value (int) – Constructor ID; only its low 32 bits are encoded.

Returns:

  • bytes – Four little-endian constructor bytes.