MCPcopy Index your code
hub / github.com/wechaty/python-wechaty / id_to_contact

Method id_to_contact

src/wechaty/user/message.py:454–457  ·  view source on GitHub ↗
(contact_id: str)

Source from the content-addressed store, hash-verified

452
453 if self.payload is not None and self.payload.mention_ids is not None:
454 async def id_to_contact(contact_id: str) -> Contact:
455 contact = self.wechaty.Contact.load(contact_id)
456 await contact.ready()
457 return contact
458
459 # TODO -> change to python async best practice
460 contacts = [

Callers

nothing calls this directly

Calls 2

loadMethod · 0.45
readyMethod · 0.45

Tested by

no test coverage detected