feat: add support for wechatcom channel

This commit is contained in:
lanvent
2023-04-20 01:03:04 +08:00
parent 0a7d6e4577
commit 4cbf46fd4d
9 changed files with 187 additions and 7 deletions

View File

@@ -29,4 +29,8 @@ def create_channel(channel_type):
from channel.wechatmp.wechatmp_channel import WechatMPChannel
return WechatMPChannel(passive_reply=False)
elif channel_type == "wechatcom":
from channel.wechatcom.wechatcom_channel import WechatComChannel
return WechatComChannel()
raise RuntimeError