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

Method __init__

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

Source from the content-addressed store, hash-verified

79@handle_for_type('link')
80class LinkMessage(WechatMessage):
81 def __init__(self, message):
82 try:
83 self.title = message.pop('Title')
84 self.description = message.pop('Description')
85 self.url = message.pop('Url')
86 except KeyError:
87 raise ParseError()
88 super(LinkMessage, self).__init__(message)
89
90
91@handle_for_type('event')

Callers

nothing calls this directly

Calls 3

ParseErrorClass · 0.85
popMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected