refactor: using one processing logic in chat channel

This commit is contained in:
lanvent
2023-04-01 04:23:19 +08:00
parent 87df588c80
commit 02cd553990
7 changed files with 159 additions and 339 deletions

View File

@@ -20,6 +20,7 @@ class Channel(object):
"""
raise NotImplementedError
# 统一的发送函数每个Channel自行实现根据reply的type字段发送不同类型的消息
def send(self, reply: Reply, context: Context):
"""
send message to user