Add wechatmp_service channel

This commit is contained in:
JS00000
2023-04-07 19:47:50 +08:00
parent 0adf8d6e5d
commit d35d01f980
7 changed files with 332 additions and 193 deletions

View File

@@ -19,5 +19,8 @@ def create_channel(channel_type):
return TerminalChannel()
elif channel_type == 'wechatmp':
from channel.wechatmp.wechatmp_channel import WechatMPChannel
return WechatMPChannel()
return WechatMPChannel(passive_reply = True)
elif channel_type == 'wechatmp_service':
from channel.wechatmp.wechatmp_channel import WechatMPChannel
return WechatMPChannel(passive_reply = False)
raise RuntimeError