how to solve it.. i try compile program using UniversalTelegramBot and than error
Ahlisauliya opened this issue · 1 comments
Arduino: 1.8.19 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:167:11: error: measureJson is a function from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
167 | int length = measureJson(payload);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:174:11: error: serializeJson is a function from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
174 | serializeJson(payload, out);
| ^~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:305:11: error: DynamicJsonDocument is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
305 | DynamicJsonDocument doc(maxMessageLength);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:306:11: error: DeserializationError is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
306 | DeserializationError error = deserializeJson(doc, ZERO_COPY(response));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:306:11: error: deserializeJson is a function from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
306 | DeserializationError error = deserializeJson(doc, ZERO_COPY(response));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:327:11: error: DynamicJsonDocument is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
327 | DynamicJsonDocument payload(maxMessageLength);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:386:11: error: DynamicJsonDocument is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
386 | DynamicJsonDocument doc(maxMessageLength);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:387:11: error: DeserializationError is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
387 | DeserializationError error = deserializeJson(doc, ZERO_COPY(response));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:387:11: error: deserializeJson is a function from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
387 | DeserializationError error = deserializeJson(doc, ZERO_COPY(response));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:565:11: error: DynamicJsonDocument is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
565 | DynamicJsonDocument payload(maxMessageLength);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:582:11: error: DynamicJsonDocument is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
582 | DynamicJsonDocument payload(maxMessageLength);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:613:11: error: DynamicJsonDocument is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
613 | DynamicJsonDocument payload(maxMessageLength);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:708:11: error: DynamicJsonDocument is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
708 | DynamicJsonDocument payload(maxMessageLength);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:731:11: error: DynamicJsonDocument is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
731 | DynamicJsonDocument doc(response.length());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:732:11: error: deserializeJson is a function from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
732 | deserializeJson(doc, response);
| ^~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:786:11: error: DynamicJsonDocument is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
786 | DynamicJsonDocument doc(maxMessageLength);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:787:11: error: DeserializationError is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
787 | DeserializationError error = deserializeJson(doc, ZERO_COPY(response));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:787:11: error: deserializeJson is a function from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
787 | DeserializationError error = deserializeJson(doc, ZERO_COPY(response));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:802:11: error: DynamicJsonDocument is a class from ArduinoJson 6 but version 5 is installed. Visit arduinojson.org to get more information.
802 | DynamicJsonDocument payload(maxMessageLength);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'String UniversalTelegramBot::sendPostToTelegram(const String&, ArduinoJson::JsonObject)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:167:30: error: cannot convert 'ArduinoJson::JsonObject' to 'int' in initialization
167 | int length = measureJson(payload);
| ~^~~~~~~~
| |
| ArduinoJson::JsonObject
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'bool UniversalTelegramBot::getMe()':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:305:23: error: 'doc' was not declared in this scope
305 | DynamicJsonDocument doc(maxMessageLength);
| ^~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:306:24: error: 'error' was not declared in this scope; did you mean 'perror'?
306 | DeserializationError error = deserializeJson(doc, ZERO_COPY(response));
| ^~~~~
| perror
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:311:51: error: expected primary-expression before '>' token
311 | name = doc["result"]["first_name"].as();
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:311:53: error: expected primary-expression before ')' token
311 | name = doc["result"]["first_name"].as();
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:312:53: error: expected primary-expression before '>' token
312 | userName = doc["result"]["username"].as();
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:312:55: error: expected primary-expression before ')' token
312 | userName = doc["result"]["username"].as();
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'bool UniversalTelegramBot::setMyCommands(const String&)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:327:23: error: 'payload' was not declared in this scope
327 | DynamicJsonDocument payload(maxMessageLength);
| ^~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:328:25: error: 'serialized' was not declared in this scope
328 | payload["commands"] = serialized(commandArray);
| ^~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:337:82: error: expected primary-expression before '>' token
337 | response = sendPostToTelegram(BOT_CMD("setMyCommands"), payload.as());
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:337:84: error: expected primary-expression before ')' token
337 | response = sendPostToTelegram(BOT_CMD("setMyCommands"), payload.as());
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'int UniversalTelegramBot::getUpdates(long int)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:386:25: error: 'doc' was not declared in this scope
386 | DynamicJsonDocument doc(maxMessageLength);
| ^~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:387:26: error: 'error' was not declared in this scope; did you mean 'perror'?
387 | DeserializationError error = deserializeJson(doc, ZERO_COPY(response));
| ^~~~~
| perror
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:402:54: error: use of deleted function 'ArduinoJson::JsonObject::JsonObject(const ArduinoJson::JsonObject&)'
402 | if (processResult(result, newMessageIndex)) newMessageIndex++;
| ^
In file included from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:11,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.h:29,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:36:
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:40:7: note: 'ArduinoJson::JsonObject::JsonObject(const ArduinoJson::JsonObject&)' is implicitly deleted because the default definition would be ill-formed:
40 | class JsonObject : public Internals::JsonPrintable,
| ^~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:40:7: error: 'ArduinoJson::Internals::NonCopyable::NonCopyable(const ArduinoJson::Internals::NonCopyable&)' is private within this context
In file included from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\jsonbuffer.hpp:11,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Deserialization/JsonParser.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonBufferBase.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/DynamicJsonBuffer.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:9,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.h:29,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:36:
c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\Data/NonCopyable.hpp:17:3: note: declared private here
17 | NonCopyable(const NonCopyable&);
| ^~~~~~~~~~~
In file included from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:36:
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.h:137:33: note: initializing argument 1 of 'bool UniversalTelegramBot::processResult(ArduinoJson::JsonObject, int)'
137 | bool processResult(JsonObject result, int messageIndex);
| ~~~~~~~~~~~^~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'bool UniversalTelegramBot::processResult(ArduinoJson::JsonObject, int)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:454:44: error: use of deleted function 'ArduinoJson::JsonObject::JsonObject(const ArduinoJson::JsonObject&)'
454 | JsonObject message = result["message"];
| ^
In file included from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantBase.hpp:7,
from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:13,
from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\jsonbuffer.hpp:12,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Deserialization/JsonParser.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonBufferBase.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/DynamicJsonBuffer.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:9,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.h:29,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:36:
c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:44:16: note: after user-defined conversion: 'ArduinoJson::Internals::JsonVariantCasts::operator ArduinoJson::JsonObject&() const [with TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char*>]'
44 | FORCE_INLINE operator JsonObject &() const {
| ^~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:485:49: error: use of deleted function 'ArduinoJson::JsonObject::JsonObject(const ArduinoJson::JsonObject&)'
485 | JsonObject message = result["channel_post"];
| ^
In file included from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantBase.hpp:7,
from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:13,
from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\jsonbuffer.hpp:12,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Deserialization/JsonParser.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonBufferBase.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/DynamicJsonBuffer.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:9,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.h:29,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:36:
c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:44:16: note: after user-defined conversion: 'ArduinoJson::Internals::JsonVariantCasts::operator ArduinoJson::JsonObject&() const [with TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char*>]'
44 | FORCE_INLINE operator JsonObject &() const {
| ^~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:494:51: error: use of deleted function 'ArduinoJson::JsonObject::JsonObject(const ArduinoJson::JsonObject&)'
494 | JsonObject message = result["callback_query"];
| ^
In file included from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantBase.hpp:7,
from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:13,
from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\jsonbuffer.hpp:12,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Deserialization/JsonParser.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonBufferBase.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/DynamicJsonBuffer.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:9,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.h:29,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:36:
c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:44:16: note: after user-defined conversion: 'ArduinoJson::Internals::JsonVariantCasts::operator ArduinoJson::JsonObject&() const [with TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char*>]'
44 | FORCE_INLINE operator JsonObject &() const {
| ^~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:507:51: error: use of deleted function 'ArduinoJson::JsonObject::JsonObject(const ArduinoJson::JsonObject&)'
507 | JsonObject message = result["edited_message"];
| ^
In file included from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantBase.hpp:7,
from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:13,
from c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\jsonbuffer.hpp:12,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Deserialization/JsonParser.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonBufferBase.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/DynamicJsonBuffer.hpp:7,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:9,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.h:29,
from C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:36:
c:\users\ahlis_auliya_rahman\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:44:16: note: after user-defined conversion: 'ArduinoJson::Internals::JsonVariantCasts::operator ArduinoJson::JsonObject&() const [with TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char*>]'
44 | FORCE_INLINE operator JsonObject &() const {
| ^~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'bool UniversalTelegramBot::sendMessage(const String&, const String&, const String&, int)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:565:23: error: 'payload' was not declared in this scope
565 | DynamicJsonDocument payload(maxMessageLength);
| ^~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:575:47: error: expected primary-expression before '>' token
575 | return sendPostMessage(payload.as(), message_id); // if message id == 0 then edit is false, else edit is true
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:575:49: error: expected primary-expression before ')' token
575 | return sendPostMessage(payload.as(), message_id); // if message id == 0 then edit is false, else edit is true
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'bool UniversalTelegramBot::sendMessageWithReplyKeyboard(const String&, const String&, const String&, const String&, bool, bool, bool)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:582:23: error: 'payload' was not declared in this scope
582 | DynamicJsonDocument payload(maxMessageLength);
| ^~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:591:29: error: 'serialized' was not declared in this scope
591 | replyMarkup["keyboard"] = serialized(keyboard);
| ^~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:604:47: error: expected primary-expression before '>' token
604 | return sendPostMessage(payload.as());
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:604:49: error: expected primary-expression before ')' token
604 | return sendPostMessage(payload.as());
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'bool UniversalTelegramBot::sendMessageWithInlineKeyboard(const String&, const String&, const String&, const String&, int)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:613:23: error: 'payload' was not declared in this scope
613 | DynamicJsonDocument payload(maxMessageLength);
| ^~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:624:36: error: 'serialized' was not declared in this scope
624 | replyMarkup["inline_keyboard"] = serialized(keyboard);
| ^~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:625:47: error: expected primary-expression before '>' token
625 | return sendPostMessage(payload.as(), message_id); // if message id == 0 then edit is false, else edit is true
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:625:49: error: expected primary-expression before ')' token
625 | return sendPostMessage(payload.as(), message_id); // if message id == 0 then edit is false, else edit is true
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'bool UniversalTelegramBot::sendPostMessage(ArduinoJson::JsonObject, bool)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:644:115: error: use of deleted function 'ArduinoJson::JsonObject::JsonObject(const ArduinoJson::JsonObject&)'
644 | String response = sendPostToTelegram((edit ? BOT_CMD("editMessageText") : BOT_CMD("sendMessage")), payload); // if edit is true we send a editMessageText CMD
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:140:83: note: initializing argument 2 of 'String UniversalTelegramBot::sendPostToTelegram(const String&, ArduinoJson::JsonObject)'
140 | String UniversalTelegramBot::sendPostToTelegram(const String& command, JsonObject payload) {
| ~~~~~~~~~~~^~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'String UniversalTelegramBot::sendPostPhoto(ArduinoJson::JsonObject)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:668:66: error: use of deleted function 'ArduinoJson::JsonObject::JsonObject(const ArduinoJson::JsonObject&)'
668 | response = sendPostToTelegram(BOT_CMD("sendPhoto"), payload);
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:140:83: note: initializing argument 2 of 'String UniversalTelegramBot::sendPostToTelegram(const String&, ArduinoJson::JsonObject)'
140 | String UniversalTelegramBot::sendPostToTelegram(const String& command, JsonObject payload) {
| ~~~~~~~~~~~^~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'String UniversalTelegramBot::sendPhoto(const String&, const String&, const String&, bool, int, const String&)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:708:23: error: 'payload' was not declared in this scope
708 | DynamicJsonDocument payload(maxMessageLength);
| ^~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:723:31: error: 'serialized' was not declared in this scope
723 | replyMarkup["keyboard"] = serialized(keyboard);
| ^~~~~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:726:45: error: expected primary-expression before '>' token
726 | return sendPostPhoto(payload.as());
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:726:47: error: expected primary-expression before ')' token
726 | return sendPostPhoto(payload.as());
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'bool UniversalTelegramBot::checkForOkResponse(const String&)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:731:23: error: 'doc' was not declared in this scope
731 | DynamicJsonDocument doc(response.length());
| ^~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'bool UniversalTelegramBot::getFile(String&, long int&, const String&)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:786:23: error: 'doc' was not declared in this scope
786 | DynamicJsonDocument doc(maxMessageLength);
| ^~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:787:24: error: 'error' was not declared in this scope; did you mean 'perror'?
787 | DeserializationError error = deserializeJson(doc, ZERO_COPY(response));
| ^~~~~
| perror
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:794:49: error: expected primary-expression before 'long'
794 | file_size = doc["result"]["file_size"].as();
| ^~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp: In member function 'bool UniversalTelegramBot::answerCallbackQuery(const String&, const String&, bool, const String&, int)':
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:802:23: error: 'payload' was not declared in this scope
802 | DynamicJsonDocument payload(maxMessageLength);
| ^~~~~~~
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:811:93: error: expected primary-expression before '>' token
811 | String response = sendPostToTelegram(BOT_CMD("answerCallbackQuery"), payload.as());
| ^
C:\Users\Ahlis_Auliya_Rahman\Documents\Arduino\libraries\UniversalTelegramBot\src\UniversalTelegramBot.cpp:811:95: error: expected primary-expression before ')' token
811 | String response = sendPostToTelegram(BOT_CMD("answerCallbackQuery"), payload.as());
| ^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
error: measureJson is a function from ArduinoJson 6 but version 5 is installed
Update your Arduino json