From fcbf9d102fa316a3e4cf17d877cba040bacac0cc Mon Sep 17 00:00:00 2001 From: Changhua Date: Wed, 19 Apr 2023 23:30:04 +0800 Subject: [PATCH] Add comments --- python/wcferry/client.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python/wcferry/client.py b/python/wcferry/client.py index ef3daa8..69a8332 100644 --- a/python/wcferry/client.py +++ b/python/wcferry/client.py @@ -439,7 +439,14 @@ class Wcf(): return rsp.status def receive_transfer(self, wxid: str, transferid: str) -> int: - """接收转账""" + """接收转账 + Args: + wxid (str): 转账消息里的发送人 wxid + transferid (str): 转账消息里的 transferid + + Returns: + int: 1 为成功,其他失败 + """ req = wcf_pb2.Request() req.func = wcf_pb2.FUNC_RECV_TRANSFER # FUNC_RECV_TRANSFER req.tf.wxid = wxid