2.8 KiB
2.8 KiB
To version 4.4.0.2
- Logging framework has been replaced by slf4j, so now you'll need to manage your own implementation.
To version 4.0.0
- Replace removed method from AbsSender with
execute
requests. - Everything under "Telegrambots-meta" has been moved to package
org.telegram.telegrambots.meta
. close
method has been removed fromBotSession
, usestop
instead.- All methods that are intended to upload files are using now
InputMedia
andInputFile
.
To version 2.4.3
- Replace
BotOptions
byDefaultBotOptions
. - At the beginning of your program (before creating your
TelegramBotsApi
orBot
instance, add the following line:ApiContextInitializer.init();
- In
SentCallback
, update parameter types ofonResult
andonError
. Inside those two method, you don't need to deserialize anything now, it comes already done. - Deprecated (will be removed in next version):
org.telegram.telegrambots.bots.BotOptions
. Useorg.telegram.telegrambots.bots.DefaultBotOptions
instead.getPersonal
fromAnswerInlineQuery
. UseisPersonal
instead.FILEBASEURL
fromFile
. UsegetFileUrl
instead.
To version 2.4.4
- Replace
ReplyKeyboardHide
byReplyKeyboardRemove
and its fieldhideKeyboard
byremoveKeyboard
(remember getter and setters) - Replace usage of
edit_message
bydisable_edit_message
(see this post) - Removed deprecated stuff from version 2.4.3
To version 2.4.4.3
- Replace
BotSession.close()
byBotSession.stop()
.
To version 2.4.4.4
- All calls to
editMessageText
,editMessageCaption
oreditMessageReplyMarkup
inAbsSender
return value is changed toSerializable
- In
editMessageTextAsync
,editMessageCaptionAsync
oreditMessageReplyMarkupAsync
inAbsSender
, second parameter should becomeSentCallback<Serializable>
due to new return type.
To version 3.0
- In
Message
object, fieldnew_chat_member
was replaced bynew_chat_members
that is now an array of users.
To version 3.0.2
- If you were using
TelegramLongPollingCommandBot
, add the new extensions dependency to your maven and fix import statements in your project. - If you were using
TelegramLongPollingCommandBot
, make sure you start using constructors with username and prevent overridinggetUsername
method.
To version 3.2
- Replace usage of all deprecated methods from AbsSender with methods
execute
orexecuteAsync
. - If you are extending AbsSender class, implement new added methods.