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

Method add

src/wechaty/user/room.py:450–464  ·  view source on GitHub ↗

Add contact in a room Args: contact: the contact to be added Examples: >>> await room.add(contact) Returns: None

(self, contact: Contact)

Source from the content-addressed store, hash-verified

448 # '''
449
450 async def add(self, contact: Contact) -> None:
451 """
452 Add contact in a room
453 Args:
454 contact: the contact to be added
455 Examples:
456 >>> await room.add(contact)
457 Returns:
458 None
459 """
460 log.info('Room add <%s>', contact)
461
462 await self.puppet.room_add(self.room_id, contact.contact_id)
463 # reload the payload
464 await self.ready(force_sync=True)
465
466 async def delete(self, contact: Contact) -> None:
467 """

Callers

nothing calls this directly

Calls 2

readyMethod · 0.95
room_addMethod · 0.80

Tested by

no test coverage detected