diff --git a/Lagrange.OneBot/Core/Operation/Message/SendPokeOperation.cs b/Lagrange.OneBot/Core/Operation/Message/SendPokeOperation.cs index 8611f1e32..c5031fa63 100644 --- a/Lagrange.OneBot/Core/Operation/Message/SendPokeOperation.cs +++ b/Lagrange.OneBot/Core/Operation/Message/SendPokeOperation.cs @@ -14,7 +14,6 @@ public async Task HandleOperation(BotContext context, JsonNode? pa { if (payload.Deserialize(SerializerOptions.DefaultOptions) is { } poke) { - if (poke.GroupId == null) if (poke.GroupId.HasValue) { bool result = await context.GroupPoke(poke.GroupId.Value, poke.UserId);