TDLightTelegramBots/TelegramBots.wiki/How-To-Update.md
2016-12-26 03:46:46 +01:00

1.1 KiB

To version 2.4.3

  1. Replace BotOptions by DefaultBotOptions.
  2. At the beginning of your program (before creating your TelegramBotsApi instance, add the following line:
    ApiContextInitializer.init();
    
  3. In SentCallback, update parameter types of onResult and onError. Inside those two method, you don't need to deserialize anything now, it comes already done.
  4. Deprecated (will be removed in next version):
    • org.telegram.telegrambots.bots.BotOptions. Use org.telegram.telegrambots.bots.DefaultBotOptions instead.
    • getPersonal from AnswerInlineQuery. Use isPersonal instead.
    • FILEBASEURL from File. Use getFileUrl instead.

To version 2.4.4

  1. Replace ReplyKeyboardHide by ReplyKeyboardRemove and its field hideKeyboard by removeKeyboard (remember getter and setters)
  2. Replace usage of edit_message by disable_edit_message (see this post)
  3. Removed deprecated stuff from version 2.4.3

To version 2.4.4.3

  1. Replace BotSession.close() by BotSession.stop().