Skip to content

miniproto.tl.codec.encode_vector

encode_vector(values: Iterable[Any], item_type: str) -> bytes

Encode a boxed TL vector.

Parameters:

  • values (Iterable[Any]) – Items to serialize.
  • item_type (str) – Schema type of each item.

Returns:

  • bytes – Vector constructor, item count, and encoded items.