public void NextStage(string message, Conversation chat)
        {
            var currentstate = ChatAdding[chat.GetId()];

            ChatAdding[chat.GetId()] = currentstate + 1;

            if (ChatAdding[chat.GetId()] == AddingState.Finish)
            {
                chat.IsAddingInProcess = false;
                ChatAdding.Remove(chat.GetId());
            }
        }
Ejemplo n.º 2
0
        public void NextStageVerbs(string message, Conversation chat)
        {
            var currentstate = ChatAddingVerb[chat.GetId()];

            ChatAddingVerb[chat.GetId()] = currentstate + 1;

            if (ChatAddingVerb[chat.GetId()] == IrregVerbsStage.Finish)
            {
                chat.IsAddingVerbInProcess = false;
                ChatAddingVerb.Remove(chat.GetId());
            }
        }
Ejemplo n.º 3
0
 private async Task SendTextWithKeyBoard(Conversation chat, string text, InlineKeyboardMarkup keyboard)
 {
     await botClient.SendTextMessageAsync(chatId : chat.GetId(), text : text, replyMarkup : keyboard);
 }
Ejemplo n.º 4
0
 private async Task SendText(Conversation chat, string text)
 {
     await botClient.SendTextMessageAsync(chatId : chat.GetId(), text : text);
 }
 public AddingState GetStage(Conversation chat)
 {
     return(ChatAdding[chat.GetId()]);
 }
 public void AddFirstState(Conversation chat)
 {
     ChatAdding.Add(chat.GetId(), AddingState.Russian);
 }
Ejemplo n.º 7
0
 public IrregVerbsStage GetStageVerb(Conversation chat)
 {
     return(ChatAddingVerb[chat.GetId()]);
 }
Ejemplo n.º 8
0
 public void AddFirstStateVerbs(Conversation chat)
 {
     ChatAddingVerb.Add(chat.GetId(), IrregVerbsStage.First);
 }