diff --git a/bot.go b/bot.go index b856c2d..30ae67e 100644 --- a/bot.go +++ b/bot.go @@ -298,8 +298,8 @@ func botGetClients(m *tb.Message) { clt.Mux.Unlock() muxClients.RLock() ret := fmt.Sprintf("Version %s (%s)\n", githash, buildstamp) - for _, c := range clients { - chat, err := bot.ChatByID(strconv.FormatInt(c.CWUserID64, 10)) + for id, c := range clients { + chat, err := bot.ChatByID(strconv.FormatInt(id, 10)) logOnError(err, "botGetClients : ChatByID") var status string if c.Active {