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

Method message_file

src/wechaty/fake_puppet.py:527–535  ·  view source on GitHub ↗

convert message to filebox :param message_id: :return:

(self, message_id: str)

Source from the content-addressed store, hash-verified

525 """
526
527 async def message_file(self, message_id: str) -> FileBox:
528 """
529 convert message to filebox
530 :param message_id:
531 :return:
532 """
533 payload = self.get_fake_message(message_id)
534 file_box = FileBox.from_json(payload.text)
535 return file_box
536
537 async def message_contact(self, message_id: str) -> str:
538 """

Callers 1

to_file_boxMethod · 0.80

Calls 2

get_fake_messageMethod · 0.80
from_jsonMethod · 0.45

Tested by

no test coverage detected