12 KiB
12 KiB
6.0.1
- Update Api version 6.0
- Removed all deprecated methods/classes with this major upgrade
5.7.1
- Update Api version 5.7
- Spring boot 2.5.8
- Bug Fixing: #1023
5.6.0
- Update Api version 5.6
5.5.0
- Update Api version 5.5
5.4.0.1
- Bug fixing: #999, #1000
5.4.0
- Update Api version 5.4
- Bug fixing: #968, #958, #942
5.3.0
- Update Api version 5.3
KeyboardRow
now support creation from a collection of buttons.- Bug fixing: #920, #931 and #937
How to update to version 5.3.0
5.2.0
- Update Api version 5.2
- Allow custom BackOff implementations
- Spring version 2.4.5 in spring module
- Bug fixing: #869, #888 and #892
5.1.1
- Bug fixing: #874
5.1.0
- Update Api version 5.1
- Bug fixing: #832, #841, #844, #851, #857
- Update Spring boot version 2.4.3
- Update Gradle docs
- Added CommandMessage to extensions
- Abilities: Inject bot instance to reply update consumer support for multiple reply declarations.
How to update to version 5.1.0
5.0.1
- Fixing couple of bugs from 5.0.0
- Bug fixing: #794
- Docs updated to reflect usage for version 5.0.0
- EditMessageText setChatIId(Long) is removed to keep consistency
5.0.0
- 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
How to update to version 5.0.0
4.9.2
- Bug fixing: #792, #801, #804, #810, #812, #813, #820 and #814
4.9.1
- Bug fixing: #767, #766, #761, #763, #776, #772, #771, #780
4.9
- Update Api version 4.9
- Bug fixing: #731, #749, #752 and #753
4.8.1
- Update Api version 4.8
- Add stats for Abilities
- New and updated wiki page
- Spring-boot support for version 2.2.2
- Bug fixing: #745, #716, #629, #749, #730
4.7
- Update Api version 4.7
4.6
- Update Api version 4.6
4.5
- Update Api version 4.5
- Fixes: #697, #710
4.4.0.2
- Use SLF4J
- Support case-insensitive usernames
- Add Ability toggles and export default abilities to their own class
- Add state machine capability to AbilityBot via ReplyFlow
- Support backup and recovery of db vars
- Fixes: #602, #641, #652, #691
4.4.0.1
- Bug fix when importing the project
4.4.0
- 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)
4.3.1
- 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
4.3
- Update to Api version 4.3
- Fixed: #615, #621
4.2
- Update to Api version 4.2
- Fixed: #498, #578
4.1.2
- Removed unsafe dependencies
- Fix bugs: #535, #524, #563, #562 and #557
4.1
- Support for Api Version 4.1
- Fix #507 and #512
4.0.1
- Fix bug #499
4.0.0
- Support for Api Version 4.0
- Abilities: Internationalization
- Socks 5 support
- Improved spring boot start configuration
- Removed previously deprecated methods
- Support usage in Java 9 (library is still using java 8)
- Added chat-session bot module
How to update to version 4.0.0
3.6.1
- Support for proxy connections
- New module for Spring
- Bug fixing
3.6
- Support for Api Version 3.6
- Bug fixing and other improvements
3.5
- Support for Api Version 3.5
- Bug fixing: #168, #329 and #335
- Added processInvalidCommandUpdate (#337)
- AbilitiyBot update and tutorial (#324)
- Add DefaultBotCommand with message ID (#330)
- New wiki content (#326 and #327)
3.4
- Support for Api Version 3.4
- Use regular expressions to split parameters in
TelegramLongPollingCommandBot
(#309) - Option to handle bunch of updates at a time via
onUpdatesReceived
inTelegramLongPollingBot
(#284) - Fix characters encoding (#275)
3.3
- Support for Api Version 3.3
3.2
- Support for Api Version 3.2
- Deprecated all redundant methods in AbsSender, will be removed in next major release
- New Abstract methods
addStickerToSet
,createNewStickerSet
anduploadStickerFile
in AbsSender. - Abilities module
- Removed deprecated methods from previous versions
- Bug fixing: #257, #270
- Simplify code from DefaultAbsSender: #272
3.1.2
- Fix bug #266
3.1.1
- Fix bug #264
3.1.0
- Support for Api Version 3.1
- Simplified
DefaultAbsSender
- Added new abstract method
setChatPhoto
to AbsSender. - Added new method
execute
andexecuteAsync
that can be used to send any api method that extendsBotApiMethod
class. - Added new constructors to
GetChat
,GetChatAdministrators
,GetChatMember
,GetChatMemberCount
,KickChatMember
,LeaveChat
andUnbanChatMember
with mandatory fields as parameters.
How to update to version 3.1.0
3.0.2
- Bug Fixing: #250
- Added new module
telegrambots-extensions
that should contains any extensions of the API such as CommandBot or TimedBot. TelegramLongPollingCommandBot
receives now the bot username as constructor parameters, all deprecated constructors will be removed in next major release.getUsername
method fromTelegramLongPollingCommandBot
can be consideredfinal
and will be so in next major release.
How to update to version 3.0.2
3.0.1
- Added
getLevel
toBotLogger
class. - Fix wrong URL when setting webhook
- Bug Fixing: #244, #233
3.0
- New field
gif_duration
andmpeg4_duration
inInlineQueryResultGif
andInlineQueryResultMpeg4Gif
. - Field
new_chat_member
was replaced bynew_chat_members
inMessage
object. - Some methods gets now 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
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
2.4.4.4
- EditMessageText, EditMessageCaption and EditMessageReplyMarkup now return a
Serializable
object that can beBoolean
orMessage
How to update to version 2.4.4.4
2.4.4.3
- In
BotSession
, renamedclose
tostop
.Close
method is maintained for backward compatibility. - Support crating webhook with HTTP servers (HTTPS must be managed via external tools)
How to update to version 2.4.4.3
2.4.4.1
- New
max_connections
insetWebhook
method. - New
allowed_updates
insetWebhook
andgetUpdates
- New
deleteWebhook
method - Added new configs to DefaultBotOptions to handle
max_connections
andallowed_updates
2.4.4
- Added
cache_time
to ÀnswerCallbackQuery method - Added field
forward_from_message_id
toMessage
object - Renamed
ReplyKeyboardHide
toReplyKeyboardRemove
and its fieldhide_keyboard
toremove_keyboard
- Added field
force
anddisable_edit_message
toSetGameScore
, removededit_message
one. - Added
channel_post
andedited_channel_post
toUpdate
object.
How to update to version 2.4.4
2.4.3
- 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 ot 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