diff --git a/Lagrange.Core/Common/Entity/BotGroupRequest.cs b/Lagrange.Core/Common/Entity/BotGroupRequest.cs index 1dd6ee3cb..2af83d8de 100644 --- a/Lagrange.Core/Common/Entity/BotGroupRequest.cs +++ b/Lagrange.Core/Common/Entity/BotGroupRequest.cs @@ -57,6 +57,7 @@ public enum State public enum Type { GroupRequest = 1, + SelfInvitation = 2, ExitGroup = 13, GroupInvitation = 22, } diff --git a/Lagrange.Core/Internal/Service/Action/SetGroupRequestService.cs b/Lagrange.Core/Internal/Service/Action/SetGroupRequestService.cs index 438db7c22..101e05806 100644 --- a/Lagrange.Core/Internal/Service/Action/SetGroupRequestService.cs +++ b/Lagrange.Core/Internal/Service/Action/SetGroupRequestService.cs @@ -22,7 +22,7 @@ protected override bool Build(SetGroupRequestEvent input, BotKeystore keystore, Body = new OidbSvcTrpcTcp0x10C8_1Body { Sequence = input.Sequence, - EventType = 2, + EventType = input.Type, GroupUin = input.GroupUin, Message = "" }