增加拍一拍

This commit is contained in:
evilbeast 2022-09-08 12:30:39 +08:00
parent 38d34ffb97
commit 8db8998aaa
6 changed files with 22 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<h1 align="center">NtChat</h1> <h1 align="center">NtChat</h1>
<p align="center"> <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> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-brightgreen.svg?" alt="License"></a>
</p> </p>

View File

@ -16,4 +16,9 @@ def set_wechat_exe_path(wechat_exe_path=None, wechat_version=None):
conf.DEFAULT_WECHAT_VERSION = wechat_version conf.DEFAULT_WECHAT_VERSION = wechat_version
exit_ = wcprobe.exit def get_install_wechat_version():
return wcprobe.get_install_wechat_version()
def exit_():
wcprobe.exit()

View File

@ -1,4 +1,4 @@
VERSION = '0.1.10' VERSION = '0.1.11'
LOG_LEVEL = "DEBUG" LOG_LEVEL = "DEBUG"
LOG_KEY = 'NTCHAT_LOG' LOG_KEY = 'NTCHAT_LOG'

View File

@ -75,3 +75,6 @@ MT_ADD_FRIEND_MSG = 11062
# 数据库查询 # 数据库查询
MT_SQL_QUERY_MSG = 11027 MT_SQL_QUERY_MSG = 11027
# 拍一拍
MT_SEND_PAT_MSG = 11250

View File

@ -360,6 +360,16 @@ class WeChat:
} }
return self.__send(send_type.MT_SEND_XML_MSG, data) 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): def accept_friend_request(self, encryptusername: str, ticket: str, scene: int):
""" """
同意加好友请求 同意加好友请求

View File

@ -194,7 +194,7 @@ extension.extra_compile_cpp_args = extra_compile_cpp_args[target_os]
setup( setup(
name='ntchat', name='ntchat',
version='0.1.10', version='0.1.11',
description='About Conversational RPA SDK for Chatbot Makers', description='About Conversational RPA SDK for Chatbot Makers',
long_description="", long_description="",
long_description_content_type='text/markdown', long_description_content_type='text/markdown',