File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,9 @@ void UniversalTelegramBot::updateToken(String token) {
51
51
}
52
52
53
53
String UniversalTelegramBot::buildCommand (String cmd) {
54
- String command = F (" bot" );
54
+ String command;
55
+
56
+ command += F (" bot" );
55
57
command += _token;
56
58
command += F (" /" );
57
59
command += cmd;
@@ -221,9 +223,11 @@ String UniversalTelegramBot::sendMultipartFormDataToTelegram(
221
223
}
222
224
}
223
225
if (client->connected ()) {
226
+ String start_request;
227
+ String end_request;
228
+
224
229
225
- String start_request = F (" --" );
226
-
230
+ start_request += F (" --" );
227
231
start_request += boundry;
228
232
start_request += F (" \r\n content-disposition: form-data; name=\" chat_id\"\r\n\r\n " );
229
233
start_request += chat_id;
@@ -237,7 +241,7 @@ String UniversalTelegramBot::sendMultipartFormDataToTelegram(
237
241
start_request += contentType;
238
242
start_request += F (" \r\n " " \r\n " );
239
243
240
- String end_request = F (" \r\n " " --" );
244
+ end_request + = F (" \r\n " " --" );
241
245
end_request += boundry;
242
246
end_request += F (" --" " \r\n " );
243
247
You can’t perform that action at this time.
0 commit comments