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

Method self

src/wechaty/wechaty.py:836–848  ·  view source on GitHub ↗

get user self Args: None Examples: >>> from wechaty import Wechaty >>> bot = Wechaty() >>> contact = bot.self() Returns: ContactSelf: user self

(self)

Source from the content-addressed store, hash-verified

834 return user
835
836 def self(self) -> ContactSelf:
837 """
838 get user self
839 Args:
840 None
841 Examples:
842 >>> from wechaty import Wechaty
843 >>> bot = Wechaty()
844 >>> contact = bot.self()
845 Returns:
846 ContactSelf: user self
847 """
848 return self.user_self()

Callers

nothing calls this directly

Calls 1

user_selfMethod · 0.95

Tested by

no test coverage detected