add wechaty

This commit is contained in:
ZQ7
2023-02-20 12:03:28 +08:00
parent e27e5958a5
commit 18e9d6a9b9
5 changed files with 210 additions and 1 deletions

View File

@@ -3,6 +3,8 @@ channel factory
"""
from channel.wechat.wechat_channel import WechatChannel
from channel.wechat.wechaty_channel import WechatyChannel
def create_channel(channel_type):
"""
@@ -12,4 +14,6 @@ def create_channel(channel_type):
"""
if channel_type == 'wx':
return WechatChannel()
raise RuntimeError
elif channel_type == 'wxy':
return WechatyChannel()
raise RuntimeError