diff --git a/python/wcferry/client.py b/python/wcferry/client.py index a53a211..ef3daa8 100644 --- a/python/wcferry/client.py +++ b/python/wcferry/client.py @@ -19,7 +19,7 @@ WCF_ROOT = os.path.abspath(os.path.dirname(__file__)) sys.path.insert(0, WCF_ROOT) import wcf_pb2 # noqa -__version__ = "3.7.0.30.23" +__version__ = "3.7.0.30.24" def _retry(): @@ -438,6 +438,15 @@ class Wcf(): rsp = self._send_request(req) return rsp.status + def receive_transfer(self, wxid: str, transferid: str) -> int: + """接收转账""" + req = wcf_pb2.Request() + req.func = wcf_pb2.FUNC_RECV_TRANSFER # FUNC_RECV_TRANSFER + req.tf.wxid = wxid + req.tf.tid = transferid + rsp = self._send_request(req) + return rsp.status + def decrypt_image(self, src: str, dst: str) -> bool: """解密图片: Args: