Releases: rubenlagus/TelegramBots
Releases · rubenlagus/TelegramBots
Bot API Version 5.0 and more
- Update Api version 5.0
- Added Builders for many of the API methods and objects (hopefully all of them unless I missed something)
- Some setters/getters may have change name. They no longer return a reference to itself, use Builder for that.
- Simplified methods to set files in methods. Only InputFile is available now (this class contains constructors for all the cases)
- Locations now use Double instead of Float to avoid rounding.
- When using a TelegramApi for webhook usage, a Webhook instance has to be provided in constructor (i.e. DefaultWebhook class)
- When registering a Webhook Bot, a SetWebhook object must be provided.
- When using Webhook with Spring, extends class SpringWebhookBot instead of WebhookBot
- New Async methods returning CompletableFutures (yes, we still have the existing callback methods)
- Added new Async methods for missing cases returning CompletableFutures. Like for sendAudio or sendVideo.
- No more Guice to define custom class
- Bug fixes: #795
Bug Fixing
Bux Fixing
Api Version 4.9
Api Version 4.7
- Update Api version 4.7
Api Version 4.6
- Update Api version 4.6
Api Version 4.5
SLF4J and other improvements
Api Version 4.4
- Update Api version 4.4
- Removed BotLogger, replaced with log4j2
- Library is now built using Java11
- Updated dependencies to use last versions
- Files can be downloaded into a stream. Allowing it to be processed immediately.
- A java.io.File can be passed into the methods. The downloaded file is copied into that file instead of a temp file then (does not work with the async methods)
Bug fixing
- Fix bug #625
- Moved ApiResponse to different package, deprecated old one (will be removed in next mayor version)
- Deprecated InputBotApiObject (It will be removed in next mayor update). And all usages moved to basic BotApiObject type.
- Updated jackson dependency to avoid security bug