Skip to content

Commit 7f5a9ee

Browse files
committed
Fixed PhotoFromSD, removed unneeded function
1 parent 0ca61fb commit 7f5a9ee

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

examples/ESP8266/SendPhoto/PhotoFromSD/PhotoFromSD.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void loop() {
7878
Serial.print("....");
7979

8080
//Content type for PNG image/png
81-
bool sent = bot.sendPhotoByBinary(chat_id, "image/jpeg", myFile.size(),
81+
String sent = bot.sendPhotoByBinary(chat_id, "image/jpeg", myFile.size(),
8282
isMoreDataAvailable,
8383
getNextByte);
8484

src/UniversalTelegramBot.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -506,12 +506,7 @@ String UniversalTelegramBot::sendPhotoByBinary(String chat_id, String contentTyp
506506

507507
if (_debug) Serial.println(response);
508508

509-
if(checkForOkResponse(response))
510-
{
511-
return extractFileIdFromResponse(response);
512-
}
513-
514-
return "";
509+
return response;
515510
}
516511

517512
String UniversalTelegramBot::sendPhoto(String chat_id, String photo, String caption, bool disable_notification, int reply_to_message_id, String keyboard) {

0 commit comments

Comments
 (0)