2018-08-21 21:59:55 +02:00
### <a id="4.1"></a>4.1 ###
1. Support for Api Version [4.1 ](https://core.telegram.org/bots/api-changelog#august-22-2018 )
2018-08-21 22:29:33 +02:00
2. Fix #507 and #512
2018-08-21 21:59:55 +02:00
### <a id="4.0.1"></a>4.0.1 ###
2018-08-09 02:51:41 +02:00
1. Fix bug #499
2018-07-27 00:27:26 +02:00
### <a id="4.0.0"></a>4.0.0 ###
1. Support for Api Version [4.0 ](https://core.telegram.org/bots/api-changelog#july-26-2018 )
2. Abilities: Internationalization
3. Socks 5 support
4. Improved spring boot start configuration
5. Removed previously deprecated methods
6. Support usage in Java 9 (library is still using java 8)
2018-07-27 01:55:11 +02:00
7. Added chat-session bot module
2018-07-27 00:27:26 +02:00
**[[How to update to version 4.0.0|How-To-Update#4.0.0]]**
2018-04-20 01:44:04 +02:00
### <a id="3.6.1"></a>3.6.1 ###
1. Support for proxy connections
2. New module for Spring
3. Bug fixing
2018-02-14 20:36:22 +01:00
### <a id="3.6"></a>3.6 ###
1. Support for Api Version [3.6 ](https://core.telegram.org/bots/api-changelog#february-13-2018 )
2. Bug fixing and other improvements
2017-11-17 15:47:22 +01:00
### <a id="3.5"></a>3.5 ###
1. Support for Api Version [3.5 ](https://core.telegram.org/bots/api-changelog#november-17-2017 )
2. Bug fixing: #168 , #329 and #335
3. Added processInvalidCommandUpdate (#337)
4. AbilitiyBot update and tutorial (#324)
5. Add DefaultBotCommand with message ID (#330)
6. New wiki content (#326 and #327 )
2017-10-11 19:27:12 +02:00
### <a id="3.4"></a>3.4 ###
1. Support for Api Version [3.4 ](https://core.telegram.org/bots/api-changelog#october-11-2017 )
2. Use regular expressions to split parameters in `TelegramLongPollingCommandBot` (#309)
3. Option to handle bunch of updates at a time via `onUpdatesReceived` in `TelegramLongPollingBot` (#284)
4. Fix characters encoding (#275)
### <a id="3.3"></a>3.3 ###
1. Support for Api Version [3.3 ](https://core.telegram.org/bots/api-changelog#august-23-2017 )
2016-11-17 02:41:12 +01:00
2016-11-21 01:28:09 +01:00
2017-08-23 09:06:32 +02:00
### <a id="3.2"></a>3.2 ###
1. Support for Api Version [3.2 ](https://core.telegram.org/bots/api-changelog#july-21-2017 )
2. Deprecated all redundant methods in AbsSender, will be removed in next major release
3. New Abstract methods `addStickerToSet` , `createNewStickerSet` and `uploadStickerFile` in AbsSender.
4. Abilities module
5. Removed deprecated methods from previous versions
6. Bug fixing: #257 , #270
7. Simplify code from DefaultAbsSender: #272
2016-11-21 01:28:09 +01:00
2017-08-23 09:06:32 +02:00
**[[How to update to version 3.2|How-To-Update#3.2]]**
2016-12-03 21:17:03 +01:00
2017-08-23 09:06:32 +02:00
### <a id="3.1.2"></a>3.1.2 ###
1. Fix bug #266
2016-12-26 03:46:46 +01:00
2017-08-23 09:06:32 +02:00
### <a id="3.1.1"></a>3.1.1 ###
1. Fix bug #264
2016-12-26 03:46:46 +01:00
2017-08-23 09:06:32 +02:00
### <a id="3.1.0"></a>3.1.0 ###
1. Support for Api Version [3.1 ](https://core.telegram.org/bots/api-changelog#june-30-2017 )
2. Simplified `DefaultAbsSender`
3. Added new abstract method `setChatPhoto` to AbsSender.
4. Added new method `execute` and `executeAsync` that can be used to send any api method that extends `BotApiMethod` class.
5. Added new constructors to `GetChat` , `GetChatAdministrators` , `GetChatMember` , `GetChatMemberCount` , `KickChatMember` , `LeaveChat` and `UnbanChatMember` with mandatory fields as parameters.
2017-01-15 03:21:57 +01:00
2017-08-23 09:06:32 +02:00
**[[How to update to version 3.1.0|How-To-Update#3.1.0]]**
2017-01-15 03:21:57 +01:00
2017-08-23 09:06:32 +02:00
### <a id="3.0.2"></a>3.0.2 ###
1. Bug Fixing: #250
2. Added new module `telegrambots-extensions` that should contains any extensions of the API such as CommandBot or TimedBot.
3. `TelegramLongPollingCommandBot` receives now the bot username as constructor parameters, all deprecated constructors will be removed in next major release.
4. `getUsername` method from `TelegramLongPollingCommandBot` can be considered `final` and will be so in next major release.
2017-02-25 20:23:11 +01:00
2017-08-23 09:06:32 +02:00
**[[How to update to version 3.0.2|How-To-Update#3.0.2]]**
### <a id="3.0.1"></a>3.0.1 ###
1. Added `getLevel` to `BotLogger` class.
2. Fix wrong URL when setting webhook
3. Bug Fixing: #244 , #233
2017-03-27 00:49:08 +02:00
2017-05-03 01:40:55 +02:00
### <a id="3.0"></a>3.0 ###
2017-03-27 00:49:08 +02:00
1. New field `gif_duration` and `mpeg4_duration` in `InlineQueryResultGif` and `InlineQueryResultMpeg4Gif` .
2. Field `new_chat_member` was replaced by `new_chat_members` in `Message` object.
3. Some methods gets now constructors with mandatory parameters to simplify their creation (including preconditions).
2017-05-03 01:40:55 +02:00
4. New `deleteMessage` method.
5. New field `language_code` in `User` object.
6. New Payments API methods
7. New Video Messages API methods
2017-03-27 00:49:08 +02:00
2017-05-29 00:38:00 +02:00
**[[How to update to version 3.0|How-To-Update#3.0]]**
2017-08-23 09:06:32 +02:00
### <a id="2.4.4.5"></a>2.4.4.5 ###
1. New validations for AnswerInlineQuery according to Telegram Bots API changes.
2. Added Maven-enforcer-plugin to Maven pom.
3. Added new How to send photos by file_id to FAQ.
4. Added reference to new gitbook about this library.
5. Added custom ExponentialBackOff waiting time when having network problems in long-polling mode. (Custom implementation is allowed via BotOptions)
6. Bug fixing: #184 , #183
2017-06-18 05:34:13 +02:00
2017-08-23 09:06:32 +02:00
### <a id="2.4.4.4"></a>2.4.4.4 ###
1. EditMessageText, EditMessageCaption and EditMessageReplyMarkup now return a `Serializable` object that can be `Boolean` or `Message`
2017-06-18 05:34:13 +02:00
2017-08-23 09:06:32 +02:00
**[[How to update to version 2.4.4.4|How-To-Update#2.4.4.4]]**
2017-06-30 14:15:48 +02:00
2017-08-23 09:06:32 +02:00
### <a id="2.4.4.3"></a>2.4.4.3 ###
1. In `BotSession` , renamed `close` to `stop` . `Close` method is maintained for backward compatibility.
2. Support crating webhook with HTTP servers (HTTPS must be managed via external tools)
2017-06-30 14:15:48 +02:00
2017-08-23 09:06:32 +02:00
**[[How to update to version 2.4.4.3|How-To-Update#2.4.4.3]]**
2017-07-09 02:48:26 +02:00
2017-08-23 09:06:32 +02:00
### <a id="2.4.4.1"></a>2.4.4.1 ###
1. New `max_connections` in `setWebhook` method.
2. New `allowed_updates` in `setWebhook` and `getUpdates`
3. New `deleteWebhook` method
4. Added new configs to DefaultBotOptions to handle `max_connections` and `allowed_updates`
2017-07-10 02:16:21 +02:00
2017-08-23 09:06:32 +02:00
### <a id="2.4.4"></a>2.4.4 ###
1. Added `cache_time` to ÀnswerCallbackQuery method
2. Added field `forward_from_message_id` to `Message` object
3. Renamed `ReplyKeyboardHide` to `ReplyKeyboardRemove` and its field `hide_keyboard` to `remove_keyboard`
4. Added field `force` and `disable_edit_message` to `SetGameScore` , removed `edit_message` one.
5. Added `channel_post` and `edited_channel_post` to `Update` object.
2017-07-10 02:16:21 +02:00
2017-08-23 09:06:32 +02:00
**[[How to update to version 2.4.4|How-To-Update#2.4.4]]**
2017-07-21 16:17:48 +02:00
2017-08-23 09:06:32 +02:00
### <a id="2.4.3"></a>2.4.3 ###
1. Split library in two modules to allow custom implementations.
2. Use [Guice ](https://github.com/google/guice ) for dependency injection.
3. Use [Jackson ](https://github.com/FasterXML/jackson ) for json (de)serialization.
4. Added extra validation to methods before performing requests.
5. 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.
6. Added convenient method for `setChatId` using just a `Long` value instead of an String.
7. In `SentCallback` method `onError` changed second parameter to `TelegramApiRequestException` and `onResult` now receives the deserialized answer (of type `T` ) instead of a `JSONObject` as second parameter
8. Moved to MIT license
2017-07-21 16:17:48 +02:00
2017-08-23 09:06:32 +02:00
**[[How to update to version 2.4.3|How-To-Update#2.4.3]]**