Impl pat group member

This commit is contained in:
Changhua
2023-12-06 09:21:55 +08:00
parent 436785fdb5
commit 631a4fc6e0
10 changed files with 155 additions and 59 deletions
+19 -1
View File
@@ -1,7 +1,7 @@
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
__version__ = "39.0.8.0"
__version__ = "39.0.9.0"
import atexit
import base64
@@ -452,6 +452,24 @@ class Wcf():
rsp = self._send_request(req)
return rsp.status
def send_pat_msg(self, roomid: str, wxid: str) -> int:
"""拍一拍群友
Args:
roomid (str): 群 id
wxid (str): 要拍的群友的 wxid
Returns:
int: 1 为成功,其他失败
"""
req = wcf_pb2.Request()
req.func = wcf_pb2.FUNC_SEND_PAT_MSG # FUNC_SEND_PAT_MSG
req.pm.roomid = roomid
req.pm.wxid = wxid
rsp = self._send_request(req)
return rsp.status
def get_msg(self, block=True) -> WxMsg:
"""从消息队列中获取消息
File diff suppressed because one or more lines are too long