1
0
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:
源文雨
2022-11-24 18:36:37 +08:00
parent 97f2e69298
commit dea35e6d21
5 changed files with 45 additions and 37 deletions

View File

@@ -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))))
}