增加web channel

This commit is contained in:
Stony
2024-11-26 14:09:20 +08:00
parent cf84e57f81
commit 71c18c04fc
6 changed files with 381 additions and 1 deletions

View File

@@ -21,6 +21,9 @@ def create_channel(channel_type) -> Channel:
elif channel_type == "terminal":
from channel.terminal.terminal_channel import TerminalChannel
ch = TerminalChannel()
elif channel_type == 'web':
from channel.web.web_channel import WebChannel
ch = WebChannel()
elif channel_type == "wechatmp":
from channel.wechatmp.wechatmp_channel import WechatMPChannel
ch = WechatMPChannel(passive_reply=True)