test clients version

This commit is contained in:
shoopea 2020-02-05 18:49:41 +08:00
parent 5f6d58255b
commit fde45dcf2e

4
bot.go
View File

@ -298,8 +298,8 @@ func botGetClients(m *tb.Message) {
clt.Mux.Unlock()
muxClients.RLock()
ret := fmt.Sprintf("<code>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 {