Parcourir la source

transfer KF helper function

master
Patrick Peng Sun il y a 8 ans
Parent
révision
56aeebb7d2
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. +10
    -0
      wechatMsg.go

+ 10
- 0
wechatMsg.go Voir le fichier

@@ -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)
}

Chargement…
Annuler
Enregistrer