Universal-Arduino-Telegram-Bot icon indicating copy to clipboard operation
Universal-Arduino-Telegram-Bot copied to clipboard

sendDocument does not work if do not wait for the complete response

Open ghsantos opened this issue 6 years ago • 1 comments

this line

      if (responseReceived) {
        if (_debug) {
          Serial.println();
          Serial.println(body);
          Serial.println();
        }
        break;
      }

ghsantos avatar Oct 18 '18 00:10 ghsantos

Hi, to solve the problem you must set a delay(100); instead of while loop waiting telegram response.

billyrudi avatar Sep 23 '19 07:09 billyrudi