public async Task Execute(ResetCurrentUserOptions options = null)
        {
            var          replyKeyboard = _mainMenuCreator.CreateMenu();
            const string messageText   = "Reset";

            var currentUser = _currentTelegramUserProvider.GetCurrentTelegramRozkladUser();
            await _telegramRozkladUserDao.Delete(currentUser);

            await _telegramBotService.SendOrEditMessageAsync(
                messageText,
                replyMarkup : replyKeyboard,
                forceNewMessage : true);
        }
Esempio n. 2
0
 public Task ResetCurrentUser(ResetCurrentUserOptions options = null)
 {
     return(_currentScopeServiceProvider.GetService <ResetCurrentUserAction>().Execute(options));
 }