Remove delays
This commit is contained in:
parent
9937575651
commit
3be59e8f67
|
@ -1,5 +1,4 @@
|
|||
using
|
||||
System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
@ -63,7 +62,7 @@ namespace TelegramRemindMe
|
|||
{
|
||||
case ChatStatusEnum.WaitingTaskTitle:
|
||||
currentChat._tasklist.Add(new TaskEntry(message.Text));
|
||||
await Bot.SendChatActionAsync(message.Chat.Id, ChatAction.Typing);
|
||||
//await Bot.SendChatActionAsync(message.Chat.Id, ChatAction.Typing);
|
||||
SendOverview(currentChat, "Task added successfully!");
|
||||
return;
|
||||
case ChatStatusEnum.WaitingTaskComplete:
|
||||
|
@ -199,7 +198,7 @@ namespace TelegramRemindMe
|
|||
}
|
||||
});
|
||||
|
||||
await Bot.SendChatActionAsync(chat.ChatId, ChatAction.Typing);
|
||||
//await Bot.SendChatActionAsync(chat.ChatId, ChatAction.Typing);
|
||||
|
||||
//TODO: why is this firing when workingmsg already deleted?
|
||||
try
|
||||
|
@ -242,13 +241,13 @@ namespace TelegramRemindMe
|
|||
prefixLine)
|
||||
.Result.MessageId;
|
||||
|
||||
await Bot.SendChatActionAsync(chat.ChatId, ChatAction.Typing);
|
||||
await Task.Delay(1500);
|
||||
//await Bot.SendChatActionAsync(chat.ChatId, ChatAction.Typing);
|
||||
//await Task.Delay(1500);
|
||||
await Bot.EditMessageTextAsync(chat.ChatId, msgid, sb.ToString(), replyMarkup: actionKeyboard);
|
||||
}
|
||||
else
|
||||
{
|
||||
await Bot.SendChatActionAsync(chat.ChatId, ChatAction.Typing);
|
||||
//await Bot.SendChatActionAsync(chat.ChatId, ChatAction.Typing);
|
||||
await Bot.SendTextMessageAsync(chat.ChatId, sb.ToString(), replyMarkup: actionKeyboard);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue