Problem with a Bot library

I'm trying to use Universal-Arduino-Telegram-Bot.
So I choose the library and it's included in my project without errors. But when I try to compile I get a lot of errors - Method 'as' could not be resolved
Here for example

messages[messageIndex].from_id = message["from"]["id"].as<String>(); 

messages[messageIndex].from_name = message["from"]["first_name"].as<String>();

What do I miss?

Please post the full sketch and full error message using code tags for both

I didn't add any bot related code into the sketch. This is how it looks in IDE

Pictures of code are almost always a waste of time, as in this case. Please copy the code and post it here in code tags (the </> icon above the message editor)

It'll be huge amount of code - the hole library. The errors generated in the library source file.
UniversalTelegramBot.cpp (27.8 KB)

I suppose the problem derived from ArduinoJson library

Which board have you got selected in the IDE ?

You have still not posted the sketch that you were trying to upload. Was it one of the library examples ?

This is the board.

The project works well. I upload it on the board and all works good. The problem only with this library.
This is the example but I didn't get to it - the errors pop up at the library compile time
BulkMessages.ino (7.3 KB)

The library is located here

How can both of those statements be true ?

The sketch that you posted compiles for me with the NodeMCU 1.0 (ESP-12E Module) (as the target board using IDE 2.0.1

If I remove the library from the project - it compiles.

IDE 2.0.1? Do you mean Arduino IDE? Mine is Sloeber 4.4.0.

Your sketch actually use the library so what do you mean when you say that you removed the library

I compiled your code using Arduino IDE 2.0.2, not 2.0.1 as a originally said

So I guess it's IDE related issue. The library doesn't link well in Sloeber IDE.

I still don't understand what you mean when you say

Right click on
UniversalTelegramBot.cpp
UniversalTelegramBot.h
Then check - Exclude resource from build

Presumably that is in Sloeber

However, if doing what you suggest does what it implies then I can't see how the code could compile. It certainly doesn't compile if you comment out the #include for the library

Ohh...It was my mistake, a typo of mine, double included the sources it caused the errors. Thank you.