public override void Execute(TelegramBotClient botClient, System.Object message) { IStandartCommand standartCommand = new GetAnaliticsPharase(); if (standartCommand.SetCallbackQuery(message, out _message)) { return; } if (standartCommand.SetDataBase(out db)) { return; } if (standartCommand.SetUserAndCheckIsNull(botClient, _message, out user, db)) { return; } if (IsBan.Ban(botClient, message)) { SendMessage(botClient); AnaliticsPhraseAllChat[] analyticsTexts = db.GetAnaliticsPhraseAllChats(); PrintExel.GetAnaliticsPharase(analyticsTexts, botClient, _message, user); } }
public override void Execute(TelegramBotClient botClient, System.Object message) { IStandartCommand standartCommand = new AddUserInChannel(); if (standartCommand.SetCallbackQuery(message, out _message)) { return; } if (standartCommand.SetDataBase(out db)) { return; } if (standartCommand.SetUserAndCheckIsNull(botClient, _message, out user, db)) { return; } if (IsBan.Ban(botClient, message)) { SendMessage(botClient); InvitedUser[] analyticsTexts = db.GetInvitedUsers(); PrintExel.GetAllUsers(botClient, _message, user); } }