MCPcopy Create free account
hub / github.com/doraemonext/wechat-python-sdk / __init__

Method __init__

wechat_sdk/messages.py:45–51  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

43@handle_for_type('video')
44class VideoMessage(WechatMessage):
45 def __init__(self, message):
46 try:
47 self.media_id = message.pop('MediaId')
48 self.thumb_media_id = message.pop('ThumbMediaId')
49 except KeyError:
50 raise ParseError()
51 super(VideoMessage, self).__init__(message)
52
53
54@handle_for_type('shortvideo')

Callers

nothing calls this directly

Calls 3

ParseErrorClass · 0.85
popMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected