hotfix SendMessage error

This commit is contained in:
LAPTOP-3CFGGVOS\rabbit 2024-09-12 18:55:42 +08:00
parent 3f8e506ec7
commit 504bfd24b2
3 changed files with 3 additions and 9 deletions

View file

@ -87,9 +87,7 @@ public class ChatbotUiController : ControllerBase
message,
replyMessage: null,
async msg =>
await OnChunkReceived(outputStream, msg),
_ => Task.CompletedTask,
_ => Task.CompletedTask);
await OnChunkReceived(outputStream, msg));
await OnEventCompleted(outputStream);
}

View file

@ -113,9 +113,7 @@ public class MessageHandleService
{
replies.Add(new TextMessage(msg.Content));
}
},
_ => Task.CompletedTask,
_ => Task.CompletedTask);
});
// Response to user
foreach(var reply in replies)

View file

@ -74,9 +74,7 @@ namespace BotSharp.Plugin.WeChat
async msg =>
{
await ReplyTextMessageAsync(openid, msg.Content);
},
_ => Task.CompletedTask,
_ => Task.CompletedTask);
});
}
private async Task<User> GetWeChatAccountUserAsync(string openId, IServiceProvider service)