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

Method text

src/wechaty/user/message.py:333–347  ·  view source on GitHub ↗

get message text 获取对话的消息文本. Args: None Examples: >>> msg.text() Returns: str: the message text

(self)

Source from the content-addressed store, hash-verified

331 return talker
332
333 def text(self) -> str:
334 """
335 get message text
336
337 获取对话的消息文本.
338 Args:
339 None
340 Examples:
341 >>> msg.text()
342 Returns:
343 str: the message text
344 """
345 if self.payload.text:
346 return self.payload.text
347 return ''
348
349 async def to_recalled(self) -> Message:
350 """

Callers 6

__str__Method · 0.95
to_recalledMethod · 0.95
mention_textMethod · 0.95
messageFunction · 0.80
messageFunction · 0.80
on_messageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected