public override void Execute(TelegramBotClient botClient, System.Object message) { IStandartCommand standartCommand = new NotificationChannelId(); ISplitNameInt64 splitNameInt64 = new NotificationChannelId(); if (standartCommand.SetCallbackQuery(message, out _message)) { return; } if (standartCommand.SetDataBase(out db)) { return; } if (standartCommand.SetUserAndCheckIsNull(botClient, _message, out user, db)) { return; } KeyChannel = splitNameInt64.GetNameSplit(Name); Name = CommandText.NotificationChannelId; ChangeNotificationChat(); SendMessage(botClient); }
public override void Execute(TelegramBotClient botClient, System.Object message) { IStandartCommand standartCommand = new NotificationChannelId(); if (standartCommand.SetCallbackQuery(message, out _message)) { return; } if (standartCommand.SetDataBase(out db)) { return; } if (standartCommand.SetUserAndCheckIsNull(botClient, _message, out user, db)) { return; } SendMessage(botClient); }