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

Class GroupTransferReply

wechat_sdk/reply.py:240–260  ·  view source on GitHub ↗

客服群发转发消息

Source from the content-addressed store, hash-verified

238
239
240class GroupTransferReply(WechatReply):
241 """
242 客服群发转发消息
243 """
244 TEMPLATE = u"""
245 <xml>
246 <ToUserName><![CDATA[{target}]]></ToUserName>
247 <FromUserName><![CDATA[{source}]]></FromUserName>
248 <CreateTime>{time}</CreateTime>
249 <MsgType><![CDATA[transfer_customer_service]]></MsgType>
250 </xml>
251 """
252
253 def __init__(self, message):
254 """
255 :param message: WechatMessage 对象
256 """
257 super(GroupTransferReply, self).__init__(message=message)
258
259 def render(self):
260 return GroupTransferReply.TEMPLATE.format(**self._args)
261
262

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected