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

Method ready

src/wechaty/user/friendship.py:145–152  ·  view source on GitHub ↗

load friendship payload

(self, force_sync: bool = False)

Source from the content-addressed store, hash-verified

143 .format(self.type().name, self._payload.contact_id, self.hello())
144
145 async def ready(self, force_sync: bool = False) -> None:
146 """
147 load friendship payload
148 """
149 log.info('ready() sync the friendship payload')
150 if not self.is_ready() or force_sync:
151 self._payload = await self.puppet.friendship_payload(
152 friendship_id=self.friendship_id)
153
154 def contact(self) -> Contact:
155 """

Callers 3

searchMethod · 0.45
acceptMethod · 0.45
from_jsonMethod · 0.45

Calls 2

is_readyMethod · 0.80
friendship_payloadMethod · 0.80

Tested by

no test coverage detected