Skip to content

Commit

Permalink
升级SDK,将OneBot11发送临时消息修改为发送好友消息
Browse files Browse the repository at this point in the history
  • Loading branch information
GardenHamster committed Aug 26, 2024
1 parent 3e78392 commit e191764
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Theresa3rd-Bot/TheresaBot.GoCqHttp/Session/CQSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ public override async Task<BaseResult> SendFriendMessageAsync(long memberId, Lis

public override async Task<BaseResult> SendTempMessageAsync(long groupId, long memberId, string message)
{
var result = await CQHelper.Session.SendPrivateMessageAsync(memberId, groupId, new CqMessage(message));
var result = await CQHelper.Session.SendPrivateMessageAsync(memberId, new CqMessage(message));
return new CQResult(result, result.MessageId);
}

public override async Task<BaseResult> SendTempMessageAsync(long groupId, long memberId, List<BaseContent> contents)
{
if (contents.Count == 0) return BaseResult.Undo;
CqMsg[] msgList = contents.ToCQMessageAsync();
var result = await CQHelper.Session.SendPrivateMessageAsync(memberId, groupId, new CqMessage(msgList));
var result = await CQHelper.Session.SendPrivateMessageAsync(memberId, new CqMessage(msgList));
return new CQResult(result, result.MessageId);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EleCho.GoCqHttpSdk" Version="1.2.5" />
<PackageReference Include="EleCho.GoCqHttpSdk" Version="1.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit e191764

Please sign in to comment.