From fde45dcf2e3f8c748133246945bc656e704d7eb6 Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 5 Feb 2020 18:49:41 +0800 Subject: [PATCH] test clients version --- bot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {