mirror of
https://github.com/fumiama/ReiBot.git
synced 2026-06-08 20:10:30 +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() {
|
if !ctx.Message.Chat.IsPrivate() {
|
||||||
gid = ctx.Message.Chat.ID
|
gid = ctx.Message.Chat.ID
|
||||||
}
|
}
|
||||||
return c.Handler(uintptr(unsafe.Pointer(ctx)), gid, ctx.value.Elem().FieldByName("From").FieldByName("ID").Int())
|
return c.Handler(uintptr(unsafe.Pointer(ctx)), gid, ctx.value.Elem().FieldByName("From").Elem().FieldByName("ID").Int())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user