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

Method render

wechat_sdk/reply.py:226–237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

224 self._articles.append(article)
225
226 def render(self):
227 items = []
228 for article in self._articles:
229 items.append(ArticleReply.ITEM_TEMPLATE.format(
230 title=article.title,
231 description=article.description,
232 picurl=article.picurl,
233 url=article.url,
234 ))
235 self._args["items"] = ''.join(items)
236 self._args["count"] = len(items)
237 return ArticleReply.TEMPLATE.format(**self._args)
238
239
240class GroupTransferReply(WechatReply):

Callers 1

response_newsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected