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

Method get_fake_contact

src/wechaty/fake_puppet.py:209–218  ·  view source on GitHub ↗

_summary_ Args: id (str): _description_ Returns: Optional[ContactPayload]: _description_

(self, contact_id: str)

Source from the content-addressed store, hash-verified

207 self._contact_payloads[payload.id] = payload
208
209 def get_fake_contact(self, contact_id: str) -> Optional[ContactPayload]:
210 """_summary_
211
212 Args:
213 id (str): _description_
214
215 Returns:
216 Optional[ContactPayload]: _description_
217 """
218 return self._contact_payloads.get(contact_id, None)
219
220 def remove_fake_contact(self, contact_id: str):
221 """_summary_

Callers 2

contact_aliasMethod · 0.80
contact_payloadMethod · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected