diff --git a/main.go b/main.go index cc08885..e0d6b57 100644 --- a/main.go +++ b/main.go @@ -135,7 +135,7 @@ func handleStats(c tele.Context) error { } func handleUserLeft(c tele.Context) error { - u := ChatUser{UserID: c.Callback().Message.UserLeft.ID, ChatID: c.Chat().ID} + u := ChatUser{UserID: c.Message().UserLeft.ID, ChatID: c.Chat().ID} log.Printf("user %d left chat %d", u.UserID, u.ChatID) DB.Where(&u).Delete(&ChatUser{}) return nil