Archived
1

Special profile signature in /users list

This commit is contained in:
Vladimir Hodakov 2017-11-26 16:03:31 +04:00
parent 60bf806b50
commit 60365e1637

View File

@ -95,7 +95,11 @@ func (u *Users) usersList(update *tgbotapi.Update, page int, usersArray []dbmapp
message += "Telegram ID: " + strconv.Itoa(usersArray[i].Player.TelegramID) + "\n"
message += "Последнее обновление: " + usersArray[i].Profile.CreatedAt.Format("02.01.2006 15:04:05") + "\n"
} else {
message += " _без профиля_\n"
if usersArray[i].Player.Status == "special" {
message += " _суперюзер_\n"
} else {
message += " _без профиля_\n"
}
message += "Telegram ID: " + strconv.Itoa(usersArray[i].Player.TelegramID) + "\n"
}
}