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

Method upload_cache

src/wechaty/user/room.py:296–307  ·  view source on GitHub ↗

dynamic upload clear the room_id from _pool and re-upload it using load Args: room_id: The Roo ID to refresh Return: Room:The refreshed room instance

(cls, room_id: str)

Source from the content-addressed store, hash-verified

294
295 @classmethod
296 def upload_cache(cls, room_id: str) -> Room:
297 """
298 dynamic upload
299 clear the room_id from _pool and re-upload it using load
300 Args:
301 room_id: The Roo ID to refresh
302 Return:
303 Room:The refreshed room instance
304 """
305 if room_id in cls._pool:
306 del cls._pool[room_id]
307 return cls.load(room_id)
308
309 def __str__(self) -> str:
310 """

Callers 1

room_topic_listenerMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected