From b213ba541d14a838ffb4a9894b1bbce8ac2d864b Mon Sep 17 00:00:00 2001 From: chenzhenkun Date: Thu, 31 Aug 2023 21:02:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ewework=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=9C=BA=E5=99=A8=E4=BA=BA=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 2 +- bridge/reply.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 4f3da19..1bd6dad 100644 --- a/app.py +++ b/app.py @@ -43,7 +43,7 @@ def run(): # os.environ['WECHATY_PUPPET_SERVICE_ENDPOINT'] = '127.0.0.1:9001' channel = channel_factory.create_channel(channel_name) - if channel_name in ["wx", "wxy", "terminal", "wechatmp", "wechatmp_service", "wechatcom_app"]: + if channel_name in ["wx", "wxy", "terminal", "wechatmp", "wechatmp_service", "wechatcom_app", "wework"]: PluginManager().load_plugins() # startup channel diff --git a/bridge/reply.py b/bridge/reply.py index d9d6703..0031484 100644 --- a/bridge/reply.py +++ b/bridge/reply.py @@ -8,9 +8,15 @@ class ReplyType(Enum): VOICE = 2 # 音频文件 IMAGE = 3 # 图片文件 IMAGE_URL = 4 # 图片URL - + VIDEO_URL = 5 # 视频URL + FILE = 6 # 文件 + CARD = 7 # 微信名片,仅支持ntchat + InviteRoom = 8 # 邀请好友进群 INFO = 9 ERROR = 10 + TEXT_ = 11 # 强制文本 + VIDEO = 12 + MINIAPP = 13 # 小程序 def __str__(self): return self.name