Impl receive_transfer

This commit is contained in:
Changhua 2023-04-18 23:27:58 +08:00
parent 3949504ca6
commit 8cee11b124

View File

@ -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: