matrixlib.events module¶
Classes that represent Matrix events
-
class
matrixlib.events.Event(type: str, sender: str, content: dict[str, Any], unsigned: dict[str, Any] | None = None, **kwargs)¶ -
Base class for Matrix events
-
classmethod
is_valid(data)¶
-
static
schema()¶
-
to_dict() dict¶ -
Return a dict representation of the event, e.g. for serialization
-
classmethod