mirror of
https://github.com/smallevilbeast/ntchat.git
synced 2026-07-02 04:52:44 +08:00
增加拍一拍
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
+6
-1
@@ -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):
|
||||
"""
|
||||
同意加好友请求
|
||||
|
||||
@@ -194,7 +194,7 @@ extension.extra_compile_cpp_args = extra_compile_cpp_args[target_os]
|
||||
|
||||
setup(
|
||||
name='ntchat',
|
||||
version='0.1.10',
|
||||
version='0.1.11',
|
||||
description='About Conversational RPA SDK for Chatbot Makers',
|
||||
long_description="",
|
||||
long_description_content_type='text/markdown',
|
||||
|
||||
Reference in New Issue
Block a user