@page @using Telegram.Bot.SpaceApi.Backend.Utils @using Telegram.Bot.SpaceApi.Backend.Database @using Telegram.Bot.SpaceApi.Backend @model IndexModel @{ ViewData["Title"] = "Home"; var db = new DatabaseContext(); var bots = db.Bots.OrderBy(p => p.Id); } @section Stylesheets { } @section Scripts { }

Bots

@foreach (var bot in bots) { }
Name Chat Status Actions
@bot.Name @bot.Chat @{ var botInstance = BotOrchestrator.GetBot(bot); if (botInstance != null) { if (string.IsNullOrWhiteSpace(botInstance.Error)) { OK ~ @(botInstance.LastStatus ? "open" : "closed") } else { Error } } else { Unknown } }
Edit