         timeClient.setTimeOffset(3600);
     }
   }
+  if (millis() > Bot_lasttime + Bot_mtbs)  {
+      int numNewMessages = bot.getUpdates(bot.last_message_recived + 1);
+      while(numNewMessages) {
+          Serial.println("got response");
+          for(int i=0; i<numNewMessages; i++) {
+              bot.sendMessage(bot.messages[i].chat_id, bot.messages[i].text, "");
+          }
+          numNewMessages = bot.getUpdates(bot.last_message_recived + 1);
+      }
+      Bot_lasttime = millis();
+  }
   if(triggeredJoystick && ((millis()-lastJoystick)>debounceInterval))
   {
       triggeredJoystick = false;

  wifiManager.autoConnect("WaschmaschineAP");
  WiFiConnected = true;
  timeClient.begin();
  String telegram = "https://api.telegram.org/" + String(_BOT_ID) + "/sendMessage?chat_id=" + _CHAT_ID + "&text=" + timeClient.getFormattedTime();
  Serial.println(telegram);
  HTTPClient http;
  http.begin(telegram);
  int httpCode = http.GET();
  // httpCode will be negative on error
  if(httpCode > 0) {
      // HTTP header has been send and Server response header has been handled
      Serial.printf("[HTTP] GET... code: %d\n", httpCode);

      // file found at server
      if(httpCode == HTTP_CODE_OK) {
          String payload = http.getString();
          Serial.println(payload);
      }
  } else {
      Serial.printf("[HTTP] GET... failed, error: %s\n", http.errorToString(httpCode).c_str());
  }
  http.end();

  ads.begin();
}

unsigned int debounceInterval = 200;
unsigned int lastJoystick = 0;
bool triggeredJoystick = false;

bool WiFiConnected = false;

