- Split library in two modules to allow custom implementations.
- Use Guice for dependency injection.
- Use Jackson for json (de)serialization.
- Added extra validation to methods before performing requests.
- BotOptions has been renamed to DefaultBotOptions. It allows now to set number of threads for async methods execution and the complete
RequestConfig
for customization purpose.
- Added convenient method for
setChatId
using just a Long
value instead of an String.
- In
SentCallback
method onError
changed second parameter to TelegramApiRequestException
and onResult
now receives the deserialized answer (of type T
) instead of a JSONObject
as second parameter
- Moved to MIT license
How to update to version 2.4.3