719 B
719 B
To version 2.4.2
- Replace
BotOptions
byDefaultBotOptions
. - At the beginning of your program (before creating your
TelegramBotsApi
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.