test clients version
This commit is contained in:
parent
5f6d58255b
commit
fde45dcf2e
4
bot.go
4
bot.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user