4.3 KiB
4.3 KiB
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
How to update to version 2.4.3
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.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.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.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.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
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
3.0.1
- Added
getLevel
toBotLogger
class. - Fix wrong URL when setting webhook
- Bug Fixing: #244, #233
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.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.