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

Method get_alias_or_name

src/wechaty/user/message.py:485–490  ·  view source on GitHub ↗
(member: Contact)

Source from the content-addressed store, hash-verified

483 return text
484
485 async def get_alias_or_name(member: Contact) -> str:
486 if room is not None:
487 alias = await room.alias(member)
488 if alias:
489 return alias
490 return member.name
491
492 # TODO -> change to python async best practice
493 # flake8: disable=F841

Callers

nothing calls this directly

Calls 1

aliasMethod · 0.45

Tested by

no test coverage detected