From 56aeebb7d26c27d8ad62c13c8c133595264a54f9 Mon Sep 17 00:00:00 2001 From: Patrick Peng Sun Date: Thu, 1 Jun 2017 01:40:22 +1000 Subject: [PATCH] transfer KF helper function --- wechatMsg.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wechatMsg.go b/wechatMsg.go index 4ff73a3..15023b1 100644 --- a/wechatMsg.go +++ b/wechatMsg.go @@ -27,3 +27,13 @@ func (m *InWechatMsg) replyText(s string) { str, _ := BuildTextMsg(m.header.FromUserName, s) m.instantResponse <- str } + +func (m *InWechatMsg) transfer2KF() { + str, _ := BuildKFTransferAnyOneMsg(m.header.FromUserName) + m.replyXML(str) +} + +func (m *InWechatMsg) transfer2SpecificKF(kf string) { + str := buildKfForwardMsg(m.header.FromUserName, kf) + m.replyXML(str) +}