mirror of
https://github.com/fumiama/ReiBot.git
synced 2026-06-05 00:50:25 +08:00
fix: from.id reflect
This commit is contained in:
2
rule.go
2
rule.go
@@ -23,7 +23,7 @@ func newctrl(service string, o *ctrl.Options[*Ctx]) Rule {
|
||||
if !ctx.Message.Chat.IsPrivate() {
|
||||
gid = ctx.Message.Chat.ID
|
||||
}
|
||||
return c.Handler(uintptr(unsafe.Pointer(ctx)), gid, ctx.value.FieldByName("From").FieldByName("ID").Int())
|
||||
return c.Handler(uintptr(unsafe.Pointer(ctx)), gid, ctx.value.Elem().FieldByName("From").FieldByName("ID").Int())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user