public async Task ExecuteCallbackQueryAsync(long chatId, int messageId, string callbackQueryId, string payload)
        {
            _storageService.AddOrUpdate(StorageKeys.BotCurrentState, BotStateType.ProjectCreateWaitingEnterName);

            await _telegramBotClient.DeleteMessageAsync(
                chatId : chatId,
                messageId : messageId);

            await _telegramBotClient.SendTextMessageAsync(
                chatId : chatId,
                text : ProjectMessage.GetEnterNameMessage());
        }
Exemple #2
0
        public async Task ExecuteCommandAsync(Message message)
        {
            var projectId = _storageService.Get <string>(StorageKeys.ProjectId);

            if (!string.IsNullOrEmpty(projectId))
            {
                _storageService.AddOrUpdate(StorageKeys.BotCurrentState, BotStateType.ProjectUpdateWaitingEnterNewName);

                await _telegramBotClient.SendTextMessageAsync(
                    chatId : message.Chat.Id,
                    text : ProjectMessage.GetEnterNameMessage());
            }
        }