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

Method add_article

wechat_sdk/reply.py:220–224  ·  view source on GitHub ↗
(self, article)

Source from the content-addressed store, hash-verified

218 self._articles = []
219
220 def add_article(self, article):
221 if len(self._articles) >= 10:
222 raise AttributeError("Can't add more than 10 articles in an ArticleReply")
223 else:
224 self._articles.append(article)
225
226 def render(self):
227 items = []

Callers 1

response_newsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected