Skip to content

Commit

Permalink
feat: add web channel for dify bot
Browse files Browse the repository at this point in the history
  • Loading branch information
hanfangyuan4396 committed Dec 14, 2024
1 parent 3f105e3 commit be64eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/dify/dify_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def reply(self, query, context: Context=None):
user = None
if channel_type in ["wx", "wework", "gewechat"]:
user = context["msg"].other_user_nickname if context.get("msg") else "default"
elif channel_type in ["wechatcom_app", "wechatmp", "wechatmp_service", "wechatcom_service"]:
elif channel_type in ["wechatcom_app", "wechatmp", "wechatmp_service", "wechatcom_service", "web"]:
user = context["msg"].other_user_id if context.get("msg") else "default"
else:
return Reply(ReplyType.ERROR, f"unsupported channel type: {channel_type}, now dify only support wx, wechatcom_app, wechatmp, wechatmp_service channel")
Expand Down

0 comments on commit be64eb0

Please sign in to comment.