MCPcopy
hub / github.com/wechaty/python-wechaty / load

Method load

src/wechaty/user/room.py:279–293  ·  view source on GitHub ↗

dynamic load room instance Args: room_id: the room id Returns: Room: the room instance

(cls, room_id: str)

Source from the content-addressed store, hash-verified

277
278 @classmethod
279 def load(cls, room_id: str) -> Room:
280 """
281 dynamic load room instance
282 Args:
283 room_id: the room id
284 Returns:
285 Room: the room instance
286 """
287 room = cls._pool.get(room_id)
288 if room is not None:
289 return room
290
291 room = cls(room_id)
292 cls._pool[room_id] = room
293 return room
294
295 @classmethod
296 def upload_cache(cls, room_id: str) -> Room:

Callers 8

createMethod · 0.45
find_allMethod · 0.45
upload_cacheMethod · 0.45
readyMethod · 0.45
sayMethod · 0.45
topicMethod · 0.45
member_listMethod · 0.45
ownerMethod · 0.45

Calls 1

getMethod · 0.80

Tested by

no test coverage detected