Exemple #1
0
 public void SendDataToBot(ResponseData response)
 {
     if(!response.IsError)
         _wc.DownloadString (Addresses.SendURL(response.ChatID,
             response.Message));
     else
         _wc.DownloadString (Addresses.SendURL(response.ChatID,
             response.ErrorMessage));
 }
Exemple #2
0
 public void SendStartOrHelpMessage(QuestionData data)
 {
     ResponseData r = new ResponseData(data.UpdateID, data.ChatID);
     if (data.AmIHelp)
     {
         r.Message = Constants.HelpMessage;
     }
     if (data.AmIStart)
     {
         r.Message = Constants.StartMessage;
     }
     SendDataToBot(r);
 }