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

Method __init__

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

Source from the content-addressed store, hash-verified

32@handle_for_type('image')
33class ImageMessage(WechatMessage):
34 def __init__(self, message):
35 try:
36 self.picurl = message.pop('PicUrl')
37 self.media_id = message.pop('MediaId')
38 except KeyError:
39 raise ParseError()
40 super(ImageMessage, self).__init__(message)
41
42
43@handle_for_type('video')

Callers

nothing calls this directly

Calls 3

ParseErrorClass · 0.85
popMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected