mirror of
https://github.com/fumiama/ReiBot.git
synced 2026-06-08 03:55:12 +08:00
upd deps & 优化 log
This commit is contained in:
@@ -41,7 +41,7 @@ func NewTelegramClient(c *Bot) (tc TelegramClient) {
|
||||
continue
|
||||
}
|
||||
tp := t.Field(i).Name[2:]
|
||||
log.Println("register handler", tp)
|
||||
log.Println("注册处理函数", tp)
|
||||
handler := f.Interface()
|
||||
tc.b.handlers[tp] = *(*GeneralHandleType)(unsafe.Add(unsafe.Pointer(&handler), unsafe.Sizeof(uintptr(0))))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user