Skip to content

miniproto.tl.fast.materialize_empty_object

miniproto.tl.fast.materialize_empty_object

Section titled “miniproto.tl.fast.materialize_empty_object”
materialize_empty_object(constructor_id: object) -> object

Resolve a native empty-object token to its generated TL instance.

Parameters:

  • constructor_id (object) – Integer TL constructor identifier returned by native code.

Returns:

  • object – A newly constructed generated object with no TL fields.

Raises:

  • TypeError – If the token is not an integer or resolves to a non-empty constructor.
  • KeyError – If no generated constructor has the identifier.