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() clt.Mux.Unlock()
muxClients.RLock() muxClients.RLock()
ret := fmt.Sprintf("<code>Version %s (%s)\n", githash, buildstamp) ret := fmt.Sprintf("<code>Version %s (%s)\n", githash, buildstamp)
for _, c := range clients { for id, c := range clients {
chat, err := bot.ChatByID(strconv.FormatInt(c.CWUserID64, 10)) chat, err := bot.ChatByID(strconv.FormatInt(id, 10))
logOnError(err, "botGetClients : ChatByID") logOnError(err, "botGetClients : ChatByID")
var status string var status string
if c.Active { if c.Active {