浏览代码

新增wework企业微信机器人支持插件功能

master
chenzhenkun 1年前
父节点
当前提交
b213ba541d
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. +1
    -1
      app.py
  2. +7
    -1
      bridge/reply.py

+ 1
- 1
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


+ 7
- 1
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


正在加载...
取消
保存