1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-11 21:50:35 +08:00

fix: from.id reflect

This commit is contained in:
源文雨
2022-07-07 16:23:48 +08:00
parent 605d65d299
commit 1d671c0559
2 changed files with 4 additions and 2 deletions

View File

@@ -18,6 +18,8 @@ type Event struct {
UpdateID int
// Value is the non-null field value in Update
Value any
// value is the reflect value of Value
value reflect.Value
}
func (tc *TelegramClient) processEvent(update tgba.Update) {
@@ -45,6 +47,7 @@ func (tc *TelegramClient) processEvent(update tgba.Update) {
Type: tp,
UpdateID: update.UpdateID,
Value: f.Interface(),
value: f,
},
State: State{},
Caller: tc,