We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0cd296 commit a0dc655Copy full SHA for a0dc655
src/UniversalTelegramBot.cpp
@@ -416,14 +416,13 @@ int UniversalTelegramBot::getUpdates(long offset) {
416
Serial.println();
417
#endif
418
419
- JsonObject obj = doc.as<JsonObject>(); //there is nothing better right now
420
if (!error) {
421
#ifdef _debug
422
Serial.print(F("GetUpdates parsed jsonObj: "));
423
- serializeJson(obj, Serial);
+ serializeJson(doc, Serial);
424
425
426
- if (obj.containsKey("result")) {
+ if (doc.containsKey("result")) {
427
int resultArrayLength = doc["result"].size();
428
if (resultArrayLength > 0) {
429
int newMessageIndex = 0;
0 commit comments