Releases: rubenlagus/TelegramBots
Releases · rubenlagus/TelegramBots
Update Bots API 3.0
Update with latest changes from Bots API 3.0:
- New field
gif_duration
andmpeg4_duration
inInlineQueryResultGif
andInlineQueryResultMpeg4Gif
. - Field
new_chat_member
was replaced bynew_chat_members
inMessage
object. - Some methods now have constructors with mandatory parameters to simplify their creation (including preconditions).
- New
deleteMessage
method. - New field
language_code
inUser
object. - New Payments API methods
- New Video Messages API methods
- Bugs fixed: #206 #202 #199
Version 2.4.4.5
- New validations for AnswerInlineQuery according to Telegram Bots API changes.
- Added Maven-enforcer-plugin to Maven pom.
- Added new How to send photos by file_id to FAQ.
- Added reference to new gitbook about this library.
- Added custom ExponentialBackOff waiting time when having network problems in long-polling mode. (Custom implementation is allowed via BotOptions)
- Bug fixing: #184, #183
Thanks for the pull requests.
Bug fixing
Merge pull request #188 from rubenlagus/dev Update 2.4.4.4
Bug fixing
- In BotSession, renamed
close
tostop
.Close
method is maintained for backward compatibility. - Support creating webhook with HTTP servers (HTTPS must be managed via external tools) (#177).
Update bots api 2.3.1
- New
max_connections
insetWebhook
method. - New
allowed_updates
insetWebhook
andgetUpdates
- New
deleteWebhook
method - Added new configs to
DefaultBotOptions
to handlemax_connections
andallowed_updates
.
Bots API 2.3
Split in modeles
- 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 aLong
value instead of an String. - In
SentCallback
methodonError
changed second parameter toTelegramApiRequestException
andonResult
now receives the deserialized answer (of typeT
) instead of aJSONObject
as second parameter - Moved to MIT license
Version 2.4.0 - Game Platform
- Update new version of Telegram Bots API
- Removed deprecated methods
- Improve Exceptions
- Added validations for mandatory fields in methods
- Added method to download files
- Improve closing session process.
- Added to Maven Central Repository, you can now use it just with:
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots</artifactId>
<version>2.4</version>
</dependency>
Bug fixing
Please be aware of deprecated methods, will be removed in next mayor release
Added getWebhook info method
Added new method to get webhook information (if configured)