mirror of
https://github.com/smallevilbeast/ntchat.git
synced 2025-05-23 05:16:07 +08:00
增加拍一拍
This commit is contained in:
parent
38d34ffb97
commit
8db8998aaa
|
@ -1,6 +1,6 @@
|
|||
<h1 align="center">NtChat</h1>
|
||||
<p align="center">
|
||||
<a href="https://github.com/smallevilbeast/ntchat/releases"><img src="https://img.shields.io/badge/release-0.1.10-blue.svg?" alt="release"></a>
|
||||
<a href="https://github.com/smallevilbeast/ntchat/releases"><img src="https://img.shields.io/badge/release-0.1.11-blue.svg?" alt="release"></a>
|
||||
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-brightgreen.svg?" alt="License"></a>
|
||||
</p>
|
||||
|
||||
|
|
|
@ -16,4 +16,9 @@ def set_wechat_exe_path(wechat_exe_path=None, wechat_version=None):
|
|||
conf.DEFAULT_WECHAT_VERSION = wechat_version
|
||||
|
||||
|
||||
exit_ = wcprobe.exit
|
||||
def get_install_wechat_version():
|
||||
return wcprobe.get_install_wechat_version()
|
||||
|
||||
|
||||
def exit_():
|
||||
wcprobe.exit()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
VERSION = '0.1.10'
|
||||
VERSION = '0.1.11'
|
||||
|
||||
LOG_LEVEL = "DEBUG"
|
||||
LOG_KEY = 'NTCHAT_LOG'
|
||||
|
|
|
@ -75,3 +75,6 @@ MT_ADD_FRIEND_MSG = 11062
|
|||
|
||||
# 数据库查询
|
||||
MT_SQL_QUERY_MSG = 11027
|
||||
|
||||
# 拍一拍
|
||||
MT_SEND_PAT_MSG = 11250
|
||||
|
|
|
@ -360,6 +360,16 @@ class WeChat:
|
|||
}
|
||||
return self.__send(send_type.MT_SEND_XML_MSG, data)
|
||||
|
||||
def send_pat(self, room_wxid: str, patted_wxid: str):
|
||||
"""
|
||||
发送拍一拍
|
||||
"""
|
||||
data = {
|
||||
"room_wxid": room_wxid,
|
||||
"patted_wxid": patted_wxid
|
||||
}
|
||||
return self.__send_sync(send_type.MT_SEND_PAT_MSG, data)
|
||||
|
||||
def accept_friend_request(self, encryptusername: str, ticket: str, scene: int):
|
||||
"""
|
||||
同意加好友请求
|
||||
|
|
Loading…
Reference in New Issue
Block a user