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

Method __init__

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

Source from the content-addressed store, hash-verified

54@handle_for_type('shortvideo')
55class ShortVideoMessage(WechatMessage):
56 def __init__(self, message):
57 try:
58 self.media_id = message.pop('MediaId')
59 self.thumb_media_id = message.pop('ThumbMediaId')
60 except KeyError:
61 raise ParseError()
62 super(ShortVideoMessage, self).__init__(message)
63
64
65@handle_for_type('location')

Callers

nothing calls this directly

Calls 3

ParseErrorClass · 0.85
popMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected