Skip to content

Commit ba04372

Browse files
authored
Update UniversalTelegramBot.h
added two functions to support serial read of photo from camera
1 parent b4ebcae commit ba04372

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/UniversalTelegramBot.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,18 @@ class UniversalTelegramBot {
7979
String sendPhoto(String chat_id, String photo, String caption = "",
8080
bool disable_notification = false,
8181
int reply_to_message_id = 0, String keyboard = "");
82+
String sendMultipartFormSerialDataToTelegram(String command, String binaryProperyName,
83+
String fileName, String contentType,
84+
String chat_id, int fileSize,
85+
MoreDataAvailable moreDataAvailableCallback,
86+
GetNextBuffer getNextBufferCallback,
87+
GetNextBufferLen getNextBufferLenCallback);
88+
89+
90+
String sendPhotoFromBuffer(String chat_id, String contentType, int fileSize,
91+
MoreDataAvailable moreDataAvailableCallback,
92+
GetNextBuffer getNextBufferCallback,
93+
GetNextBufferLen getNextBufferLenCallback);
8294

8395
int getUpdates(long offset);
8496
bool checkForOkResponse(String response);

0 commit comments

Comments
 (0)