matrixlib.rooms
module¶
Room-related functionality
-
class
matrixlib.rooms.
RoomStateTracker
(c: Client)¶ -
Tracks room state
-
get_all_state_for_type
(room_id: str, event_type: str) dict[str, matrixlib.events.StateEvent] ¶ -
Get all the current state for the given event type
Returns a
dict
mapping from state key to state event.
-
get_state
(room_id: str, event_type: str, state_key: str = '') StateEvent | None ¶ -
Get the current state for the given event type and state key
Returns
None
if no state is found.
-