2016-11-17 03:37:01 +01:00
### <a id="2.4.2"></a>To version 2.4.2 ###
2016-11-17 02:41:12 +01:00
1. Replace `BotOptions` by `DefaultBotOptions` .
2. At the beginning of your program (before creating your `TelegramBotsApi` instance, add the following line:
```java
ApiContextInitializer.init();
```
2016-11-17 03:31:32 +01:00
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.
2016-11-17 02:41:12 +01:00
3. **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.