1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-15 21:03:48 +00:00
tgbotapi/CHANGELOG.md

2723 lines
122 KiB
Markdown
Raw Normal View History

2019-01-01 10:15:01 +00:00
# TelegramBotAPI changelog
2022-11-05 14:07:23 +00:00
## 4.0.0
**!!! THIS UPDATE CONTAINS FULL REWORK OF MEDIA GROUPS FUNCTIONALITY !!!**
**THIS UPDATE CONTAINS BREAKING CHANGES**
* `Common`:
* All the media groups have been rewritten. Since this update, there are no separated messages types for media groups,
but new type of content (`MediaGroupContent`) has been introduced
* [Bot API 6.3](https://core.telegram.org/bots/api-changelog#november-5-2022) support
* `Versions`:
* `MicroUtils`: `0.13.2` -> `0.14.0`
* `Core`:
* New requests
2022-10-30 20:25:16 +00:00
## 3.3.1
2022-10-30 20:28:23 +00:00
* `Versions`:
* `Ktor`: `2.1.2` -> `2.1.3`
2022-11-01 06:41:35 +00:00
* `Klock`: `3.2.0` -> `3.3.1`
2022-10-30 20:28:23 +00:00
* `MicroUtils`: `0.13.1` -> `0.13.2`
* `Utils`:
* New extensions on `CommonMessage`: `hasCommands` and `hasNoCommands`. Useful for the `initialFilter` parameter in behaviour builder triggers.
2022-10-13 12:24:59 +00:00
## 3.3.0
2022-10-22 11:59:54 +00:00
**THIS VERSION CONTAINS UPGRADE KOTLIN (AND ALL RELATED LIBRARIES) UP TO 1.7.20**
2022-10-13 12:25:44 +00:00
* `Versions`:
2022-10-22 08:33:43 +00:00
* `Kotlin`: `1.7.10` -> `1.7.20`
* `Kotlin Serialization`: `1.4.0` -> `1.4.1`
* `Korlibs`: `3.1.0` -> `3.2.0`
2022-10-19 13:25:01 +00:00
* `MicroUtils`: `0.12.17` -> `0.13.1`
* `Core`:
* Add opportunity to create command text source and add command in entities builder
via `BotCommamd` (thanks to [d1shin](https://github.com/InsanusMokrassar/TelegramBotAPI/pull/664))
2022-10-22 11:41:55 +00:00
* `API`:
* New extensions `TelegramBot#getStickerSetOrNull` and `TelegramBot#getStickerSetOrThrow`
* Old `TelegramBot#getStickerSet` has been deprecated
2022-10-19 13:25:01 +00:00
* `Behaviour Builder`:
2022-10-22 08:33:43 +00:00
* Add opportunity to use triggers and waiters with `BotCommand` (thanks to [d1shin](https://github.com/InsanusMokrassar/TelegramBotAPI/pull/664))
2022-10-13 12:25:44 +00:00
2022-09-28 14:02:45 +00:00
## 3.2.7
2022-10-01 16:09:01 +00:00
* `Versions`:
* `MicroUtils`: `0.12.13` -> `0.12.17`
* `Ktor`: `2.1.1` -> `2.1.2`
2022-09-28 14:38:16 +00:00
* `Utils`:
* Next classes become typealiases instead of classes:
* `ReplyKeyboardBuilder`
* `ReplyKeyboardRowBuilder`
* `InlineKeyboardBuilder`
* `InlineKeyboardRowBuilder`
2022-09-18 20:16:12 +00:00
## 3.2.6
* `Core`:
* Fixes in `ChatMemberSerializer#serialize` method
2022-09-19 05:18:01 +00:00
* Migration of `EntitiesBuilder` from `Utils` to `Core`
* `API`:
* All the extensions related to text messages (replies, sending, editing) got their duplicates with `buildEntities` lambda and separator
2022-09-19 05:18:01 +00:00
* `Utils`:
* Migration of `EntitiesBuilder` from `Utils` to `Core`
2022-09-18 18:17:30 +00:00
## 3.2.5
* `Common`:
* Improve support of new exceptions recovering mechanism
2022-09-16 09:43:40 +00:00
## 3.2.4
2022-09-16 10:36:21 +00:00
* `API`:
* New `edit`'s with chats and message ids
2022-09-15 09:05:38 +00:00
## 3.2.3
2022-09-15 09:06:19 +00:00
* `Core`:
* Fixes in `DeleteMyCommands`
2022-09-14 18:02:22 +00:00
## 3.2.2
2022-09-15 06:46:17 +00:00
* `Versions`:
* `MicroUtils`: `0.12.10` -> `0.12.13`
* `Core`:
* `MessageIdentifier` has been renamed to `MessageId`
* `API`:
* New `reply`'es with chats and message ids
2022-09-07 10:32:37 +00:00
## 3.2.1
2022-09-07 10:33:29 +00:00
* `Versions`:
* `Ktor`: `2.1.0` -> `2.1.1`
2022-09-08 08:36:10 +00:00
* `Korlibs`: `3.0.0` -> `3.1.0`
* `MicroUtils`: `0.12.4` -> `0.12.10`
2022-09-07 10:33:29 +00:00
2022-08-26 05:00:36 +00:00
## 3.2.0
2022-08-23 05:47:31 +00:00
2022-08-26 06:44:11 +00:00
**Since this update, `RequestsExecutor#execute` may throw only `BotException`. In case you wish to handle some exceptions from `execute` you must catch `BotException` and handle its `cause`**
2022-08-23 05:48:55 +00:00
* `Versions`:
* `Serialization`: `1.4.0-RC` -> `1.4.0`
2022-08-23 07:13:06 +00:00
* `MicroUtils`: `0.12.1` -> `0.12.4`
* `Core`:
* `SetWebhook#allowedUpdates` now is `ALL_UPDATES_LIST` by default instead of `null`
* `API`:
* Extension `TelegramBot#setWebhook` parameter `allowedUpdates` now is `ALL_UPDATES_LIST` by default instead of `null`
* `Utils`:
* All related to long polling extensions parameters `allowedUpdates` now are `ALL_UPDATES_LIST` by default instead of `null`
2022-08-23 05:48:55 +00:00
2022-08-14 12:55:08 +00:00
## 3.1.1
2022-08-14 16:13:03 +00:00
* `Common`:
* Complete Bot API 6.2 implementation
2022-08-12 16:42:47 +00:00
## 3.1.0
2022-08-13 07:03:34 +00:00
**This update contains including of Bot API 6.2**
* `Versions`:
* `Ktor`: `2.0.3` -> `2.1.0`
* `MicroUtils`: `0.12.0` -> `0.12.1`
2022-08-12 17:21:53 +00:00
* `Core`:
* Add support of `custom emoji`s
2022-08-13 07:03:34 +00:00
* Add support of `sticker_type`
2022-08-12 17:21:53 +00:00
2022-08-05 17:47:43 +00:00
## 3.0.2
2022-08-04 11:12:34 +00:00
2022-08-05 15:43:15 +00:00
**ALL OLD DEPRECATIONS HAVE BEEN REMOVED**
**`copyMessage` HAVE CHANGED THEIR SIGNATURE BY SWAPPING FROM AND TO CHAT IDS**
2022-08-05 15:27:45 +00:00
* `Versions`:
* `Kotlin`: `1.6.21` -> `1.7.10`
* `Serialization`: `1.3.3` -> `1.4.0-RC`
* `Korlibs`: `2.7.0` -> `3.0.0`
* `UUID`: `0.4.1` -> `0.5.0`
* `MicroUtils`: `0.11.13` -> `0.12.0`
2022-08-05 05:47:39 +00:00
* `Core`:
2022-08-05 15:27:45 +00:00
* Interface `ReplyMakrup` has been renamed to `WithReplyMarkup` to correspond its purpose
2022-08-05 15:43:15 +00:00
* Data class `LeftChatMember` has been renamed to `LeftChatMemberEvent` to avoid type ambiguite with the other `LeftChatMember`
* `ForwardInfo` hierarchy has been fully reworked:
* `AnonymousForwardInfo` -> `ForwardInfo.ByAnonymous`
* `UserForwardInfo` -> `ForwardInfo.ByUser`
* `ForwardFromPublicChatInfo` -> `ForwardInfo.PublicChat`
* `ForwardFromChannelInfo` -> `ForwardInfo.PublicChat.FromChannel`
* `ForwardFromSupergroupInfo` -> `ForwardInfo.PublicChat.FromSupergroup`
* `ForwardInfo.PublicChat.SentByChannel` ___has been created___
2022-08-05 05:47:39 +00:00
* `API`:
2022-08-05 15:27:45 +00:00
* Add new `Flow`-based live locations API
2022-08-05 15:43:15 +00:00
* Add `sendLocation` for sending live locations
2022-08-05 15:27:45 +00:00
* `Utils`:
* **BREAKING CHANGES** Now all new classcasts (like `Chat.ifPrivateChat` etc.) have been rewritten to be generated with `ksp` and `kotlin poet`
2022-08-05 18:39:46 +00:00
*Note: Versions 3.0.0 and 3.0.1 have been published with errors and didn't recommend to use*
2022-08-05 15:27:45 +00:00
## 2.2.2
2022-07-31 12:26:07 +00:00
* `Utils`:
* `buildEntities` now is inline
2022-07-31 11:49:48 +00:00
* `Behaviour Builder`:
* Fixes in `CallbackQuery` triggers
2022-07-22 10:50:11 +00:00
## 2.2.1
* `Versions`:
* `Coroutines`: `1.6.3` -> `1.6.4`
2022-07-22 12:45:09 +00:00
* `MicroUtils`: `0.11.12` -> `0.11.13`
2022-07-22 10:50:11 +00:00
* `Core`:
* New `typealiase`s for `CommonMessage` with all supported content types, more info: [PR](https://github.com/InsanusMokrassar/TelegramBotAPI/pull/629)
* `Utils`:
* New extensions for all types of messages `*.withContentOrNull` and `*.withContentOrThrow` as analogies to the same ones from class casts
2022-07-10 18:10:30 +00:00
## 2.2.0
* `Core`:
* For `CopyMessage` order of parameters has been changed
2022-07-10 19:27:28 +00:00
* `ReplyForce` defaults changes:
* All old companion properties (like `ReplyForce.ReplyForceSelective`) have been renamed:
* `ReplyForceSelective` -> `Selective`
* `ReplyForceNonSelective` -> `NonSelective`
* `ReplyForceDefault` -> `Default`
* New companion functions:
* `ReplyForce#Selective`
* `ReplyForce#NonSelective`
2022-07-10 19:56:31 +00:00
* Rename `CreatorChatMember` -> `OwnerChatMember`
* `API`:
* For `copyMessage` order of parameters has been changed
2022-07-10 18:53:20 +00:00
* `Utils`:
2022-07-10 18:57:13 +00:00
* New extension `Message#sameChat`
2022-07-10 18:53:20 +00:00
* New extension `Message#sameMessage`
* New functions `flatInlineKeyboard` and `flatReplyKeyboard`
2022-07-10 20:20:28 +00:00
* Experimentally add new triple of class casts: `if*`, `*OrNull` and `*OrThrow`
2022-07-09 16:37:58 +00:00
## 2.1.3
2022-07-09 17:52:16 +00:00
* `Versions`:
* `MicroUtils`: `0.11.9` -> `0.11.12`
2022-07-09 16:43:19 +00:00
* `Utils`:
* Rename `UserId` extension `link` to `userLink`
2022-07-09 17:09:52 +00:00
* `Core`
* `ChatJoinRequest#inviteLink` is nullable due to the fact that join requests without link do not require invite link
2022-07-09 16:43:19 +00:00
2022-06-29 07:27:29 +00:00
## 2.1.2
2022-06-29 08:27:29 +00:00
* `Versions`:
2022-07-09 17:52:16 +00:00
* `Coroutines`: `1.6.1` -> `1.6.3`
* `Ktor`: `2.0.2` -> `2.0.3`
* `MicroUtils`: `0.11.6` -> `0.11.9`
2022-06-29 08:27:29 +00:00
2022-06-24 20:11:23 +00:00
## 2.1.1
* `API`:
* Now it is possible to edit any message text via `editMessageText` (but with warning)
* Now it is possible to edit any message caption via `editMessageCaption` (but with warning)
* Media message caption edit method (`editMessageCaption`) now returns the message with the same generic type (as it must be in telegram system)
2022-06-24 20:49:38 +00:00
* New extensions `TelegramBot#edit` has been added for all possible editions types
2022-06-25 17:06:41 +00:00
* New extensions `TelegramBot#send` has been added for all possible sending types
2022-06-26 07:36:13 +00:00
* New extensions `TelegramBot#delete` has been added
* `Versions`:
* `MicroUtils`: `0.11.3` -> `0.11.6`
2022-06-21 09:22:34 +00:00
## 2.1.0
__This update contains including of [Telegram Bot API 6.1](https://core.telegram.org/bots/api-changelog#june-20-2022)__
2022-06-21 10:27:53 +00:00
* Add support of functionality for `WebApp`s from [Bot API 6.1](https://core.telegram.org/bots/api-changelog#june-20-2022)
2022-06-21 11:34:14 +00:00
* Add support of functionality for premium feature from [Bot API 6.1](https://core.telegram.org/bots/api-changelog#june-20-2022)
2022-06-21 11:52:16 +00:00
* Add support of `addedToAttachmentMenu` in `CommonUser` from [Bot API 6.1](https://core.telegram.org/bots/api-changelog#june-20-2022)
2022-06-21 11:55:21 +00:00
* Add support of `secret_token` in `SetWebhook` request from [Bot API 6.1](https://core.telegram.org/bots/api-changelog#june-20-2022)
2022-06-21 12:52:55 +00:00
* Add support of `createInvoiceLink` request from [Bot API 6.1](https://core.telegram.org/bots/api-changelog#june-20-2022)
2022-06-21 10:27:53 +00:00
2022-06-16 18:16:23 +00:00
## 2.0.3
2022-06-16 20:51:22 +00:00
* `Core`:
* New function `regularln` for simple creating of `RegularTextSource` with new line in the end
2022-06-17 07:49:33 +00:00
* `API`:
* New function `downloadFileToTemp` for simple downloading of file in filesystem and manipulation with avoiding of direct using input streams and other low-level things
2022-06-16 18:20:30 +00:00
* `Versions`:
* `MicroUtils`: `0.11.0` -> `0.11.3`
2022-06-04 15:00:33 +00:00
## 2.0.2
2022-06-04 15:01:40 +00:00
* `Versions`:
* `MicroUtils`: `0.10.8` -> `0.11.0`
2022-06-05 11:40:53 +00:00
* `UUID`: `0.4.0` -> `0.4.1`
2022-06-04 15:01:40 +00:00
2022-05-22 16:35:45 +00:00
## 2.0.1
2022-05-28 03:56:40 +00:00
* `Versions`:
* `Ktor`: `2.0.1` -> `2.0.2`
2022-05-29 16:16:55 +00:00
* `MicroUtils`: `0.10.5` -> `0.10.8`
2022-05-22 16:36:56 +00:00
* `Utils`:
* `TelegramBot#longPolling` now accepts `UpdatesFilter` instead of `FlowsUpdatesFilter`
2022-05-21 17:53:45 +00:00
## 2.0.0
2022-05-21 11:27:04 +00:00
2022-05-21 19:40:03 +00:00
___ALL PREVIOUS DEPRECATIONS HAVE BEEN REMOVED___
2022-05-21 11:33:44 +00:00
* `Behaviour Builder`:
* Mappers have been removed from waiters extensions
* Triggers extensions now will use filtering inside of context receiver instead of passing the filters into `BehaviourContext`. That means that in the subcontext will not be used preinstalled filters for their `BehaviourContext` and filter of trigger will not be used in subcontext
* Waiters do not take count parameter anymore
* Waiters do not take filter parameter anymore. Use flows filters
* `Utils`:
* Add opportunity to get event messages with specific `ChatEvent` type using `withEvent`/`requireWithEvent` (by analog with `withEvent` and `requireWithEvent`)
2022-05-21 11:33:44 +00:00
2022-05-19 14:24:55 +00:00
## 1.1.3
* `Behaviour Builder with FSM`:
* Typealias `StateHandlingErrorHandler` from `1.1.2` has been deprecated and should be replaced with the new one from microutils
2022-05-18 10:27:30 +00:00
## 1.1.2
2022-05-18 10:31:14 +00:00
* `Core`:
* Rename of `TelegramAPIUrlsKeeper#checkWebAppLink` -> `TelegramAPIUrlsKeeper#checkWebAppData` (fix of [#591](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/591))
2022-05-18 10:45:08 +00:00
* `Behaviour Builder with FSM`:
* New typealias `StateHandlingErrorHandler`
* `BehaviourBuilderWithFSM` now accepts new parameter `onStateHandlingErrorHandler` which will be used in case if state has not been successfully completed
2022-05-18 10:31:14 +00:00
2022-05-16 12:53:15 +00:00
## 1.1.1
* `Versions`:
* `MicroUtils.Crypto` will not be provided with that library anymore. Instead, it is recommended to use `Korlibs.Krypto`. You still can add crypto from microutils using next groovy dependency: `dev.inmo:micro_utils.crypto:$micro_utils_version`
* `Core`:
* Improvements in `TelegramAPIUrlsKeeper#checkWebAppLink`
* New field in `TelegramAPIUrlsKeeper#webAppDataSecretKeyHash`
* `Behaviour Builder`:
* Extension `TelegramBot#buildBehaviour` now returns `BehaviourContext`
2022-05-13 18:06:32 +00:00
## 1.1.0
2022-05-13 19:35:38 +00:00
* `Utils`:
* New parameter `additionalApplicationEngineEnvironmentConfigurator` in `RequestsExecutor#setWebhookInfoAndStartListenWebhooks` and `startListenWebhooks`
2022-05-12 11:50:04 +00:00
## 1.0.1
2022-05-12 11:51:42 +00:00
* `Versions`:
* `Serialization`: `1.3.2` -> `1.3.3`
* `MicroUtils`: `0.10.3` -> `0.10.4`
2022-04-17 11:33:46 +00:00
## 1.0.0
2022-04-18 08:30:38 +00:00
__All the `tgbotapi.extensions.*` packages have been removed__
2022-05-10 17:59:40 +00:00
* `Versions`:
* `Kotlin`: `1.6.10` -> `1.6.21`
* `Ktor`: `1.6.8` -> `2.0.1`
2022-05-12 11:51:42 +00:00
* `MicroUtils`: `0.9.24` -> `0.10.3`
2022-04-17 11:47:04 +00:00
* `Core`:
* **`Ktor` package renamed. Migration:** `dev.inmo.tgbotapi.bot.Ktor` -> `dev.inmo.tgbotapi.bot.ktor`
* **`CallbackQuery` package renamed. Migration:** `dev.inmo.tgbotapi.types.CallbackQuery([\s\\.])` -> `dev.inmo.tgbotapi.types.queries.callback$1`
2022-04-21 17:24:01 +00:00
* **`ChatMember` package renamed. Migration:** `dev.inmo.tgbotapi.types.ChatMember([\s\\.])` -> `dev.inmo.tgbotapi.types.chat.member$1`
* **`ChatAdministratorRightsImpl` replaced. Migration:** `dev.inmo.tgbotapi.types.ChatAdministratorRightsImpl` -> `dev.inmo.tgbotapi.types.chat.member.ChatAdministratorRightsImpl`
2022-04-21 18:16:41 +00:00
* **`chat.abstract.extended` replaced. Migration:** `dev.inmo.tgbotapi.types.chat.abstract.extended` -> `dev.inmo.tgbotapi.types.chat.member.chat`
* **`chat.abstract` replaced. Migration:** `dev.inmo.tgbotapi.types.chat.abstract` -> `dev.inmo.tgbotapi.types.chat.member.chat`
* **`chat.extended` replaced. Migration:** `dev.inmo.tgbotapi.types.chat.extended` -> `dev.inmo.tgbotapi.types.chat.member.chat`
* **User interfaces have been fully replaced**:
* `dev.inmo.tgbotapi.types.User` -> `dev.inmo.tgbotapi.types.chat.User`
* `dev.inmo.tgbotapi.types.CommonUser` -> `dev.inmo.tgbotapi.types.chat.CommonUser`
* `dev.inmo.tgbotapi.types.ExtendedUser` -> `dev.inmo.tgbotapi.types.chat.ExtendedUser`
* `dev.inmo.tgbotapi.types.Bot` -> `dev.inmo.tgbotapi.types.chat.Bot`
* `dev.inmo.tgbotapi.types.CommonBot` -> `dev.inmo.tgbotapi.types.chat.CommonBot`
* `dev.inmo.tgbotapi.types.ExtendedBot` -> `dev.inmo.tgbotapi.types.chat.ExtendedBot`
* `dev.inmo.tgbotapi.types.UserSerializer` -> `dev.inmo.tgbotapi.types.chat.UserSerializer`
* **All `InputMedia` has been renamed as `TelegramMedia`. Migration:** `InputMedia` -> `TelegramMedia`
* `dev.inmo.tgbotapi.types.InputMedia` -> `dev.inmo.tgbotapi.types.media`
2022-05-01 05:52:02 +00:00
* **Replaces of `MessageContent`. Migrations:**
* `dev.inmo.tgbotapi.types.message.content.abstracts` -> `dev.inmo.tgbotapi.types.message.content`
* `dev.inmo.tgbotapi.types.message.content.media` -> `dev.inmo.tgbotapi.types.message.content`
2022-05-01 14:36:07 +00:00
* **Replaces of `TextSource`s. Migrations:** `dev.inmo.tgbotapi.types.MessageEntity.textsources` -> `dev.inmo.tgbotapi.types.message.textsources`
2022-05-01 14:43:03 +00:00
* **Replaces of `ParseMode`s. Migrations:** `dev.inmo.tgbotapi.types.ParseMode` -> `dev.inmo.tgbotapi.types.message`
2022-05-01 15:01:03 +00:00
* **Replaces of `MediaGroupUpdate`s. Migrations:** `dev.inmo.tgbotapi.types.update.MediaGroupUpdates` -> `dev.inmo.tgbotapi.types.update.media_group`
2022-05-01 05:52:02 +00:00
* **`InvoiceContent` has been replaced: `dev.inmo.tgbotapi.types.message.payments.InvoiceContent` -> `dev.inmo.tgbotapi.types.message.content.InvoiceContent`**
* **`PossiblySentViaBotCommonMessage` has been replaced: `dev.inmo.tgbotapi.types.message.content.abstracts.PossiblySentViaBotCommonMessage` -> `dev.inmo.tgbotapi.types.message.abstracts.PossiblySentViaBotCommonMessage`**
* **Edit live location requests have been replaced:**
* `dev.inmo.tgbotapi.requests.edit.LiveLocation` -> `dev.inmo.tgbotapi.requests.edit.location.live`
* `dev.inmo.tgbotapi.extensions.api.edit.LiveLocation` -> `dev.inmo.tgbotapi.extensions.api.edit.location.live`
2022-05-01 16:13:40 +00:00
* **Edit reply markup requests have been replaced:**
* `dev.inmo.tgbotapi.requests.edit.ReplyMarkup` -> `dev.inmo.tgbotapi.requests.edit.reply_markup`
* `dev.inmo.tgbotapi.extensions.api.edit.ReplyMarkup` -> `dev.inmo.tgbotapi.extensions.api.edit.reply_markup`
* **Common abstracts have been replaced: `dev.inmo.tgbotapi.CommonAbstracts` -> `dev.inmo.tgbotapi.abstracts`**
2022-04-17 12:15:24 +00:00
* Constructor of `UnknownInlineKeyboardButton` is not internal and can be created with any `json` ([#563](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/563))
* All the interfaces from `dev.inmo.tgbotapi.types.files.abstracts` have been replaced to `dev.inmo.tgbotapi.types.files` and converted to sealed ([#550](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/550))
* `PassportFile` has been replaced to `dev.inmo.tgbotapi.types.files`
2022-04-21 11:54:15 +00:00
* `StorageFile` has been deprecated (fix of [#556](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/556))
* `MultipartFile` do not require `StorageFile` anymore
* `InputFile` companion got functions to simplify creation of `InputFile`s
* New typealias `FileUrl` (represents `FileId` but declare that they are the same)
2022-04-21 09:42:32 +00:00
* `BehaviourBuilder`:
* `SimpleFilter` now is a `fun interface` instead of just callback (fix of [#546](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/546))
2022-05-10 20:47:00 +00:00
* New extension `BehaviourContext#createSubContext`. It uses separated `AccumulatorFlow` and will retrieve updates by itself
* New extension `BehaviourContext#doInContext`
2022-05-11 05:04:21 +00:00
* Extension `BehaviourContext#doInSubContextWithUpdatesFilter` has been renamed to `BehaviourContext#createSubContextAndDoWithUpdatesFilter`
* Extension `BehaviourContext#doInSubContext` has been deprecated
2022-05-10 20:47:00 +00:00
* `BehaviourContextWithFSM`:
* `launchStateHandling` lost its parameter `contextUpdatesFlow: Flow`
* `handleState` of `BehaviourContextWithFSM` now will get/create sub context for the state and launch handling in it
* `BehaviourWithFSMStateHandler` now extends `StatesHandler`
* `BehaviourWithFSMStateHandlerHolder` now extends `CheckableHandlerHolder` and `BehaviourWithFSMStateHandler`
* Function `checkHandleable` of `BehaviourWithFSMStateHandlerHolder` now is `suspend`
2022-04-17 11:47:04 +00:00
2022-05-07 17:26:26 +00:00
## 0.38.23
2022-05-07 18:27:48 +00:00
* `BehaviourHandler`:
* Add support of fallback triggers (fix of [#560](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/560))
2022-05-04 17:10:31 +00:00
## 0.38.22
* `Core`:
* New constant `tgWebAppStartParamField`
* All keyboards builders and rows blocks becomes not crossinline
2022-05-04 06:51:14 +00:00
## 0.38.21
2022-05-04 06:58:06 +00:00
* `WebApps`:
* `WebAppInitData#queryId` now have correct js name of field
2022-05-04 07:05:54 +00:00
* New function `sendDataOrWorkWithQueryId`
2022-05-04 06:58:06 +00:00
2022-05-03 17:11:02 +00:00
## 0.38.20
2022-05-03 17:12:03 +00:00
* `BehaviourBuilder FSM`:
* Hotfixes
2022-05-04 04:50:08 +00:00
* `WebApps`:
* New extension `TelegramBot#answerWebAppQuery`
2022-05-04 05:01:26 +00:00
* New function `handleResult`
2022-05-03 17:12:03 +00:00
2022-05-03 03:44:39 +00:00
## 0.38.19
2022-05-03 08:32:29 +00:00
* `BehaviourBuilder`:
* Hotfixes
* `BehaviourBuilder FSM`:
* `BehaviourContextWithFSMBuilder` deprecated in favor to `BehaviourContextWithFSM`
* Now it is possible to define additional handlers in subcontexts of `BehaviourBuilderWithFSM`
2022-05-02 06:28:39 +00:00
## 0.38.18
2022-05-02 07:21:43 +00:00
* `Core`:
* Add support of test servers (fix of [#577](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/577))
2022-05-02 06:44:20 +00:00
* `BehaviourBuilder`:
* Fixes in extension `BehaviourContext#doInSubContextWithUpdatesFilter` (thanks to [xzima](https://github.com/xzima))
2022-05-01 10:41:47 +00:00
## 0.38.17
2022-05-01 10:50:03 +00:00
* `Core`:
* Add `BotCommandScopeChat` as new `BotCommandScope` (fix of [#574](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/574))
2022-05-01 11:23:12 +00:00
* `BotCommandScope` companion got several properties and functions for more useful scope creation
2022-05-01 10:50:03 +00:00
2022-04-29 12:56:38 +00:00
## 0.38.16
* `Core`:
* `TelegramAPIUrlsKeeper` now have two new things: properties `webAppDataSecretKey` and fun `checkWebAppLink`
2022-04-24 12:39:07 +00:00
## 0.38.15
2022-04-25 15:19:49 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.9.20` -> `0.9.24`
* `Core`:
* Fixes in `MessageContent#serializationModule`
* `BehaviourBuilder`:
* Add triggers for `DataCallbackQuery` and subtypes with regex checking of data
2022-04-23 06:24:52 +00:00
## 0.38.14
__This update contains including of [Telegram Bot API 6.0](https://core.telegram.org/bots/api-changelog#april-16-2022)__
2022-04-17 11:47:04 +00:00
* `Core`:
* Constructor of `UnknownInlineKeyboardButton` is not internal and can be created with any `json`
2022-04-18 11:05:28 +00:00
* `WebApps`:
* Created 🎉
2022-04-17 11:47:04 +00:00
2022-04-11 05:59:37 +00:00
## 0.38.13
* `Core`:
* Fixes in `mention` creation
2022-04-11 15:00:56 +00:00
* Deprecate `StorageFileInfo`
2022-04-16 18:22:00 +00:00
* `BehaviourBuilder`:
* In the expectations a lot of `on*Message` extensions have been added (like `onContentMessage`). These extensions could be useful when with the `Content` its message info is important
2022-04-03 12:35:17 +00:00
## 0.38.12
2022-04-07 20:09:22 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.9.17` -> `0.9.19`
* `Coroutines`: `1.6.0` -> `1.6.1`
2022-04-03 13:06:27 +00:00
* `Core`:
* New type `TextedMediaContent` which will unite `TextedInput` and `MediaContent`
* `MediaGroupContent` and all subsequent inheritors have been replaced to the package `dev.inmo.tgbotapi.types.message.content.media`
* `MediaGroupContent` Now extends `TextedMediaContent` instead of `MediaContent`
2022-04-03 13:21:38 +00:00
* Add `reply` functions with the texted content with including of text
2022-04-04 07:16:18 +00:00
* `Utils`:
* Improve work with retrieving of accumulated updates
2022-04-03 13:06:27 +00:00
2022-03-27 07:36:21 +00:00
## 0.38.11
2022-03-27 07:47:38 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.9.16` -> `0.9.17`
* `Klock`: `2.6.3` -> `2.7.0`
* `Core`:
* Fixes in `TextSourcesList` creating in from `RawMessageEntities`
2022-03-29 06:27:03 +00:00
* Old ways to create keyboards (`matrix` and `row`) have been deprecated
2022-03-29 06:20:52 +00:00
* `API`:
2022-03-29 06:42:02 +00:00
* Add ability to `reply` with `Poll`
* Add ability to `reply` with any `MessageContent`
* Add ability to `reply` with any `TelegramMediaFile`
2022-03-22 23:06:48 +00:00
## 0.38.10
2022-03-23 05:48:20 +00:00
* `API`:
* All `with*Action` extensions got a contracts which declare that `block` will be called once
* Add several extensions `TelegramBot#sendPhoto` with `PhotoSize`
* Add several extensions `TelegramBot#reply` with `PhotoSize`
2022-03-23 05:48:20 +00:00
2022-03-20 05:50:52 +00:00
## 0.38.9
* `Core`:
* New function `MessageContent.Companion#serializationModule`
2022-03-22 13:06:02 +00:00
* Now it is possible to create `TelegramBot` (`RequestsExecutor`) with several bots under the hood and opportunity
for bots requests load balancing or fault-fix via sending of the requests via another bot
2022-03-20 06:14:26 +00:00
* `API`:
* Add replies which will use another message as a source for reply (`copyMessage`)
2022-03-18 13:18:34 +00:00
## 0.38.8
2022-03-19 06:27:46 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.9.12` -> `0.9.16`
* `Klock`: `2.6.2` -> `2.6.3`
* `Ktor`: `1.6.7` -> `1.6.8`
* `BehaviourBuilder`:
* Fixes in `onMediaGroup` and dependent functions
2022-03-19 06:49:14 +00:00
* Add several new extensions for `SimpleFilter`:
* `SimpleFilter#listAll`
* `SimpleFilter#listAny`
* `SimpleFilter#listNone`
2022-03-19 06:27:46 +00:00
2022-03-07 06:44:08 +00:00
## 0.38.7
2022-03-07 18:18:25 +00:00
* `Common`:
* `Version`:
2022-03-12 07:41:49 +00:00
* `MicroUtils`: `0.9.9` -> `0.9.12`
* `Klock`: `2.5.2` -> `2.6.2`
2022-03-07 18:18:25 +00:00
* `Core`:
* `SimplePollOption#votes` now is `0` by default
* New function `PollOption.Companion#simple`
2022-02-19 16:54:41 +00:00
## 0.38.6
2022-02-19 17:07:30 +00:00
* `Common`:
* `Version`:
2022-02-27 04:04:28 +00:00
* `MicroUtils`: `0.9.6` -> `0.9.9`
* `Klock`: `2.4.13` -> `2.5.2`
2022-02-19 17:02:58 +00:00
* `Core`:
* New member of `MentionTextSource` - `username`
2022-02-07 12:00:13 +00:00
## 0.38.5
2022-02-08 10:50:38 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.9.5` -> `0.9.6`
2022-02-07 12:08:06 +00:00
* `Core`:
* `Username` got new property `usernameWithoutAt` which will return `username` without leading `@`
* `Utils`:
* Several new functions for working with deep links:
* `makeUsernameDeepLinkPrefix`
* `makeTelegramDeepLink`
* `makeDeepLink`
2022-01-31 11:48:10 +00:00
## 0.38.4
2022-02-01 10:23:26 +00:00
__This update contains including of [Telegram Bot API 5.7](https://core.telegram.org/bots/api-changelog#january-31-2022)__
* `Core`:
* Support of new fields `Sticker`
* Support of new fields `StickerSet`
* Support of new fields in creating of sticker set and sticker
2022-01-31 11:51:34 +00:00
* `Utils`:
* Rename `PathedFile` to avoid clash with core file (fix of [#529](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/529))
2022-01-12 05:37:34 +00:00
## 0.38.3
2022-01-13 13:01:17 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.9.1` -> `0.9.2`
* `Klock`: `2.4.10` -> `2.4.12`
2022-01-14 10:31:57 +00:00
* `UUID`: `0.3.1` -> `0.4.0`
* `API`
* New extensions `TelegramBot#send*` for media groups with contents
2022-01-10 06:38:48 +00:00
## 0.38.2
2022-01-10 07:16:50 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.9.0` -> `0.9.1`
2022-01-10 07:06:18 +00:00
* `API`
* New extensions `TelegramBot#copyMessages` for media groups
2022-01-06 07:49:03 +00:00
## 0.38.1
* `Core`:
* `MessageCallbackQuery` (and all implementers as well) has changed the type of `message`: now it is `ContentMessage<MessageContent>` instead of `Message`
* New type `ForwardFromPublicChatInfo` as extender of `ForwardInfo`:
* `ForwardFromChannelInfo` now extends `ForwardFromPublicChatInfo`
* `ForwardFromSupergroupInfo` now extends `ForwardFromPublicChatInfo`
* New type of events: `UserLoggedIn`
2022-01-06 08:50:14 +00:00
* `Utils`:
2022-01-06 11:13:37 +00:00
* ([#511](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/511)) New extensions properties (raw fields as in original API) for several types have been added:
2022-01-06 11:00:56 +00:00
* `Message`
* `CallbackQuery`
* `ChosenInlineResult`
* `InlineQuery`
* `Poll`
2021-12-30 05:50:41 +00:00
## 0.38.0
_This update contains [Telegram Bot API 5.6](https://core.telegram.org/bots/api-changelog#december-30-2021) implementation_
_This update contains migration onto Kotlin 1.6_
_This update has changed constructors of all `CommonMessage` implementations_
2021-12-30 05:50:41 +00:00
* `Common`:
* `Version`:
* `Kotlin`: `1.5.31` -> `1.6.10`
* `Coroutines`: `1.5.2` -> `1.6.0`
* `Serialization`: `1.3.1` -> `1.3.2`
* `Klock`: `2.4.8` -> `2.4.10`
* `Ktor`: `1.6.5` -> `1.6.7`
* `MicroUtils`: `0.8.7` -> `0.9.0`
2021-12-31 07:48:51 +00:00
* `Core`:
* Add `SpoilerTextSource` (as part of `Telegram Bot API 5.6` update)
2022-01-01 14:13:22 +00:00
* Add support of `protect_content` as a field `protectContent` in all send message requests and parameter in all
functions related to that requests (as part of `Telegram Bot API 5.6` update)
* **ALL IMPLEMENTERS OF `CommonMessage` HAS CHANGED THEIR CONSTRUCTOR: NOW THEY GET `hasProtectedContent` instead of
`forwardable` (inversed) field**
* `ChannelContentMessageImpl`
* `ChannelMediaGroupMessage`
* `CommonMediaGroupMessage`
* `GroupContentMessage` implementers
* `ConnectedFromChannelGroupContentMessageImpl`
* `UnconnectedFromChannelGroupContentMessageImpl`
* `AnonymousGroupContentMessageImpl`
* `CommonGroupContentMessageImpl`
* `PrivateContentMessageImpl`
2021-12-30 05:50:41 +00:00
2021-12-21 13:13:49 +00:00
## 0.37.4
2021-12-27 16:50:09 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.8.7` -> `0.8.9`
* `Core`:
* New `SupergroupEvent` subtype: `MigratedToSupergroup`. This event is sent when a group is converted to a supergroup while bot is in the group.
* Helper extenstion functions on `ChatEvent` to cast it to `MigratedToSupergroup`.
2021-12-21 13:13:49 +00:00
2021-12-23 11:24:13 +00:00
## 0.37.3 Hotfix of 0.37.2
2021-12-20 08:07:45 +00:00
* `Core`:
* Fixes in hierarchy (and creating) of messages from channels
---
`0.37.2` changelog:
2021-12-23 11:24:13 +00:00
_This update contains [Telegram Bot API 5.5](https://core.telegram.org/bots/api-changelog#december-7-2021) implementation_
2021-12-20 08:07:45 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.8.2` -> `0.8.7`
* `Core`:
* New request type: `ChatSenderRequest`
* New request `BanChatSenderChat`
* New request `UnbanChatSenderChat`
* `ExtendedPrivateChat` got new properties: `hasPrivateForwards` and `allowCreateUserIdLink` (same as `hasPrivateForwards`)
* All `ContentMessage` got field `forwardable` (old constructors marked as `Deprecated`)
* `FromChannelGroupContentMessage` has been divided for two interfaces (and corresponding classes):
* `ConnectedFromChannelGroupContentMessage` (and `ConnectedFromChannelGroupContentMessageImpl`) for connected to the group channels messages
* `UnconnectedFromChannelGroupContentMessage` (and `UnconnectedFromChannelGroupContentMessageImpl`) for unconnected channels
* `API`:
* New extensions `TelegramBot#banChatSenderChat`
* New extensions `TelegramBot#unbanChatSenderChat`
* `Utils`:
* Fix of `EntitiesBuilder#linkln`
2021-12-20 06:47:55 +00:00
## 0.37.2 Telegram Bot API 5.5
2021-12-04 15:23:34 +00:00
* `Common`:
* `Version`:
2021-12-18 16:29:25 +00:00
* `MicroUtils`: `0.8.2` -> `0.8.7`
2021-12-20 06:47:55 +00:00
* `Core`:
* New request type: `ChatSenderRequest`
* New request `BanChatSenderChat`
* New request `UnbanChatSenderChat`
* `ExtendedPrivateChat` got new properties: `hasPrivateForwards` and `allowCreateUserIdLink` (same as `hasPrivateForwards`)
* All `ContentMessage` got field `forwardable` (old constructors marked as `Deprecated`)
* `ChannelContentMessage` has been divided for two interfaces (and corresponding classes):
* `ConnectedChannelContentMessage` (and `ConnectedChannelContentMessageImpl`) for connected to the group channels messages
* `UnconnectedChannelContentMessage` (and `UnconnectedChannelContentMessageImpl`) for unconnected channels
* `API`:
* New extensions `TelegramBot#banChatSenderChat`
* New extensions `TelegramBot#unbanChatSenderChat`
2021-12-04 15:23:34 +00:00
* `Utils`:
* Fix of `EntitiesBuilder#linkln`
2021-11-14 13:14:06 +00:00
## 0.37.1
2021-11-14 13:15:09 +00:00
* `Common`:
* `Version`:
* `Serialization`: `1.3.0` -> `1.3.1`
* `Klock`: `2.4.7` -> `2.4.8`
* `MicroUtils`: `0.8.1` -> `0.8.2`
2021-11-11 05:14:05 +00:00
## 0.37.0 Telegram Bot API 5.4
**ALL DEPRECATIONS WERE REMOVED**
2021-10-22 17:51:47 +00:00
2021-11-03 11:31:24 +00:00
* `Common`:
* `Version`:
* `Klock`: `2.4.6` -> `2.4.7`
* `Ktor`: `1.6.4` -> `1.6.5`
2021-11-09 13:23:41 +00:00
* `MicroUtils`: `0.7.3` -> `0.8.1`
2021-11-08 11:27:15 +00:00
* `Core`:
* Replacement of simple `CreateChatInviteLink` and `EditChatInviteLink` with several new:
* `CreateChatInviteLinkSimple`
* `CreateChatInviteLinkWithLimitedMembers`
* `CreateChatInviteLinkWithJoinRequest`
* `EditChatInviteLinkSimple`
* `EditChatInviteLinkWithLimitedMembers`
* `EditChatInviteLinkWithJoinRequest`
2021-11-11 06:24:10 +00:00
* New `BotAction`: `ChooseStickerAction`
* Now requester will throw exceptions related to responses decoding directly instead of wrapping in
`RequestException`
*
* `BehaviourBuilder FSM`:
* **Incompatible changes** (now generics are used in state machines)
* `strictlyOn` and `onStateOrSubstate` now are part of `BehaviourContextWithFSMBuilder`
2021-11-03 11:31:24 +00:00
2021-11-03 11:29:10 +00:00
## 0.36.1
2021-10-23 08:36:13 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.7.2` -> `0.7.3`
* `API`:
* Fix `getMyCommands` overloads conflict when no arguments provided
* `Utils`:
* `buildEntities` DSL now have parameter `separator` to specify `TextSource` that will be inserted between other sources
2021-10-01 09:45:37 +00:00
## 0.36.0
2021-10-01 10:40:04 +00:00
**ALL PREVIOUS DEPRECATIONS HAVE BEEN REMOVED**
2021-10-18 09:20:25 +00:00
**ALL EXTENSION PACKAGES HAS BEEN RENAMES**. Old packages are still available, but will be removed in next major update:
* `tgbotapi.extensions.api` -> `tgbotape.api`
* `tgbotapi.extensions.utils` -> `tgbotape.utils`
* `tgbotapi.extensions.behaviour_builder` -> `tgbotape.behaviour_builder`
2021-10-01 10:40:04 +00:00
* `Common`:
* `Version`:
* `Serialization`: `1.2.2` -> `1.3.0`
2021-10-18 08:13:22 +00:00
* `MicroUtils`: `0.5.28` -> `0.7.2`
2021-10-16 02:54:53 +00:00
* `Klock`: `2.4.3` -> `2.4.6`
* `Ktor`: `1.6.3` -> `1.6.4`
* `Core`:
* `PrivateContentMessageImpl#paymentInfo` now is deprecated and will always be null
* `PayInlineKeyboardButton#pay` now is deprecated
2021-10-01 14:07:14 +00:00
* `RowBuilder` and `MatrixBuilder` now are open and available for extending
* `MatrixBuilder#matrix` will return read-only new list instead of original internal `mutMatrix`
2021-10-03 05:43:15 +00:00
* Introduced new type of events `SuccessfulPaymentEvent` instead of putting of payment inside of message
* New type of events union: `PublicChatEvent`. `CommonEvent` is still union of any `ChatEvent`
* New `AbstractFlowsUpdatesFilter` with default `lazy` realization for all typed flows
* `FlowsUpdatesFilter` fun now have `onBufferOverflow` and `upstreamUpdatesFlow` as incoming params
* `DefaultFlowsUpdatesFilter` now use additional `upstreamUpdatesFlow` as source of updates
2021-10-01 13:42:12 +00:00
* `Utils`:
* Two new dsl:
* `inlineKeyboard` for creating `InlineKeyboardMarkup`
* `replyKeyboard` for creating `ReplyKeyboardMarkup`
2021-10-18 08:45:57 +00:00
* Cast helpers for `Message` (thanks to [madhead](https://github.com/madhead)):
* `asPossiblyReplyMessage`: tries to cast a `Message` to `PossiblyReplyMessage`, returns `null` if the message is not of that type
* `requirePossiblyReplyMessage`: casts a `Message` to `PossiblyReplyMessage`, fails if the message is not of that type
* `whenPossiblyReplyMessage`: tries to cast a `Message` to `PossiblyReplyMessage` and runs the given block of code with it, if the cast is successful
2021-10-18 08:45:57 +00:00
* New type `WithUser` for unioning of all types with `user`
* `FromUser` now extends `WithUser`
* Cast helpers for type `WithUser`: `asWithUser`, `whenWithUser`, `requireWithUser`
2021-10-03 14:37:14 +00:00
* `Behaviour Builder`:
* New expecters and waiters:
* `waitShippingQueries`/`onShippingQuery`
* `waitPreCheckoutQueries`/`onPreCheckoutQuery`
* `waitChosenInlineResult`/`onChosenInlineResult`
* `waitPollUpdates`/`onPollUpdates`
2021-10-13 08:22:01 +00:00
* `Behaviour Builder FSM extension`:
2021-10-18 10:43:37 +00:00
* See [Difference between old Behaviour Builder and new one with FSM](https://telegra.ph/Difference-between-old-Behaviour-Builder-and-new-one-with-FSM-10-18)
2021-10-01 10:40:04 +00:00
2021-09-12 09:29:19 +00:00
## 0.35.9
2021-09-12 09:48:33 +00:00
* `Common`:
* `Version`:
2021-09-19 09:27:01 +00:00
* `Kotlin`: `1.5.30` -> `1.5.31`
* `Klock`: `2.4.1` -> `2.4.2`
2021-09-21 10:24:12 +00:00
* `MicroUtils`: `0.5.25` -> `0.5.28`
2021-09-12 09:32:36 +00:00
* `Core`:
* New `BotAction` implementation - `CustomBotAction`
* `LocationContent` has been divided to two different types: `LiveLocationContent` and `StaticLocationContent`
2021-09-14 09:51:05 +00:00
* `API`:
* Two new extensions: `TelegramBot#answer` with `CallbackQuery` and `InlineQuery`
* `Behaviour Builder`:
2021-09-14 10:04:58 +00:00
* All triggers have been changed to use two filters: filter for in subcontext data and filter for incoming data
* New waiters for edited content
2021-09-14 10:16:06 +00:00
* New extension `BehaviourContext#followLocation`
* New factory-functions:
* `BehaviourContextReceiver`
* `BehaviourContextAndTypeReceiver`
* `BehaviourContextAndTwoTypesReceiver`
2021-09-21 12:39:05 +00:00
* Old API for triggers with the flags like `includeFilterByChatInBehaviourSubContext` have been deprecated
2021-09-12 09:32:36 +00:00
2021-09-08 13:57:22 +00:00
## 0.35.8
2021-09-08 13:59:29 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.5.24` -> `0.5.25`
* `UUID`: `0.3.0` -> `0.3.1`
* `Core`:
2021-09-08 18:42:57 +00:00
* `MultipartRequestCallFactory` now will use file name as multipart `filename` parameter instead of generated file id
2021-09-08 14:58:44 +00:00
* New extension `MPPFile#asMultipartFile`
2021-09-08 16:19:08 +00:00
* `API`
* Fixes in `TelegramBot#withAction`
* `Behaviour Builder`:
* New extensions `BehaviourContext#commandWithArgs` and `BehaviourContext#onCommandWithArgs`
2021-09-08 13:59:29 +00:00
2021-08-27 13:56:18 +00:00
## 0.35.7
2021-08-27 13:58:21 +00:00
* `Common`:
* `Version`:
* `Kotlin`: `1.5.21` -> `1.5.30`
2021-09-04 11:25:29 +00:00
* `Klock`: `2.3.3` -> `2.4.1`
2021-08-27 13:58:21 +00:00
* `Ktor`: `1.6.2` -> `1.6.3`
2021-09-04 11:25:29 +00:00
* `Coroutines`: `1.5.1` -> `1.5.2`
* `MicroUtils`: `0.5.21` -> `0.5.24`
2021-08-27 13:58:21 +00:00
2021-08-22 04:35:55 +00:00
## 0.35.6
2021-08-22 04:47:23 +00:00
* `Common`:
* `Version`:
* `Klock`: `2.3.1` -> `2.3.3`
* `MicroUtils`: `0.5.19` -> `0.5.21`
2021-08-22 17:14:56 +00:00
* `Core`:
* All `FlowsUpdatesFilter` flows have been renamed and updated
* `Utils`:
* Extensions `allSentMessagesFlow` and `allSentMediaGroupsFlow` have been deprecated
2021-08-22 04:47:23 +00:00
2021-08-09 13:39:03 +00:00
## 0.35.5
2021-08-13 12:39:08 +00:00
**MIME TYPES FOR REQUESTS HAVE BEEN DEPRECATED DUE TO REDUNDANCY OF MIME TYPES IN FILES SENDING**
2021-08-10 05:08:08 +00:00
* `Core`:
* Several new extensions `ByteReadChannel#asStorageFile` and `ByteReadChannelAllocator#asStorageFile`
2021-08-10 10:54:15 +00:00
* Several new extensions `ByteArray#asMultipartFile`, `ByteReadChannel#asMultipartFile` and
`ByteReadChannelAllocator#asMultipartFile`
2021-08-13 05:45:21 +00:00
* New extension `StorageFile#asMultipartFile`
2021-08-09 13:55:51 +00:00
* `API`:
* New extensions `TelegramBot#downloadFile` for writing of incoming bytes to the file
2021-08-10 04:34:59 +00:00
* New extensions `TelegramBot#downloadFileStream` and `TelegramBot#downloadFileStreamAllocator` for getting of input
streams instead of whole bytes arrays
* Old extensions `TelegramBot#downloadFile` has been replaced to the new package. Migration: replace in your project
`import dev.inmo.tgbotapi.extensions.api.downloadFile` with `import dev.inmo.tgbotapi.extensions.api.files.downloadFile`
2021-08-09 13:55:51 +00:00
* `PathedFile#filename` extension has been deprecated, and new property `PathedFile#fileName` has been included
directly in `PathedFile`
2021-08-13 05:37:01 +00:00
* `Utils`:
* Add several functions `convertToStorageFile` and extensions `TelegramBot#convertToStorageFile`
2021-08-09 13:55:51 +00:00
2021-08-09 06:26:37 +00:00
## 0.35.4 Hotfix
* `Common`:
* `Version`:
* `MicroUtils`: `0.5.18` -> `0.5.19`
2021-08-03 05:14:21 +00:00
## 0.35.3
2021-08-03 05:18:30 +00:00
* `Common`:
* `Version`:
* `Klock`: `2.2.0` -> `2.3.1`
* `Ktor`: `1.6.1` -> `1.6.2`
2021-08-05 17:12:17 +00:00
* `MicroUtils`: `0.5.16` -> `0.5.18`
2021-08-05 17:36:01 +00:00
* `Core`:
* **`SimpleRequestCallFactory` and `MultipartRequestCallFactory` became a classes instead of objects to avoid
collisions in different bots**
2021-08-05 17:36:01 +00:00
* Support of strongly-typed ietf language codes has been added
2021-08-03 05:33:52 +00:00
* `API`:
* New extension `TelegramBot#downloadFile` for any `MediaContent`
2021-08-03 05:27:39 +00:00
* `Behaviour Builder`:
* New provider `defaultCoroutineScopeProvider`
* Now it is not necessary to provide `CoroutineScope` to `TelegramBot#buildBehaviour`
extension
* New `TelegramBot#buildBehaviour` extension with `FlowUpdatesFilter` and `CoroutineScope` with
default `CoroutineScope`
2021-08-03 05:46:23 +00:00
* New typealias `SimpleFilter` for unifying triggers filter signatures
2021-08-06 04:32:31 +00:00
* All waiters got real filters (`SimpleFilter`) and rename old filters as mappers
* New extensions for `Any`: `as`/`when`/`require` for `WithOptionalLanguageCode` and `WithLanguageCode`
2021-08-03 05:18:30 +00:00
2021-07-09 05:20:33 +00:00
## 0.35.2
2021-07-17 07:40:05 +00:00
* `Common`:
* `Version`:
* `Kotlin`: `1.5.20` -> `1.5.21`
* `Coroutines`: `1.5.0` -> `1.5.1`
* `Serialization`: `1.2.1` -> `1.2.2`
* `Klock`: `2.1.2` -> `2.2.0`
* `Ktor`: `1.6.0` -> `1.6.1`
* `MicroUtils`: `0.5.15` -> `0.5.16`
2021-06-23 15:20:28 +00:00
## 0.35.1
2021-06-24 08:34:58 +00:00
* `Common`:
* `Version`:
2021-06-25 20:04:08 +00:00
* `Kotlin`: `1.5.10` -> `1.5.20`
2021-06-27 19:00:20 +00:00
* `MicroUtils`: `0.5.6` -> `0.5.15`
* `Core`:
* New interface `MyCommandsRequest` (also see `Bot API 5.3` below)
2021-06-28 18:01:40 +00:00
* New extensions `TextSourcesList#make*String` for all parse modes
* All `MessageContent` subclasses now serializable
2021-06-29 05:53:36 +00:00
* `ChosenInlineResult` was replaced and modified to be sealed
2021-06-30 05:26:31 +00:00
* `ChosenInlineResult` now extends `FromUser`
2021-06-30 04:40:23 +00:00
* Added `Update#sourceUser` method
* More types assumed as sent by user types now implements `FromUser` interface
* Added `Any#whenFromUser`, `Any#asFromUser` and`Any#requireFromUser` extensions
2021-06-30 05:12:09 +00:00
* `MedaGroupUpdate` and its direct extenders `SentMediaGroupUpdate` and `EditMediaGroupUpdate` became
`sealed interface`s
2021-06-30 07:57:20 +00:00
* New built-in `RequestException` implementator `GetUpdatesConflict` has been added
2021-06-23 15:51:30 +00:00
* `Behaviour Builder`:
* ❗️ All triggers (`on*` extensions) have been modified to work in parallel by some marker by default (new parameter
`markerFactory`, in most cases will work async for different chats)
2021-06-23 15:51:30 +00:00
* New extensions `telegramBotWithBehaviour`
* All behaviour builder extensions got new parameter `defaultExceptionsHandler`
2021-06-28 04:29:45 +00:00
* Class `BehaviourContext` was rewritten as an interface with default realization `DefaultBehaviourContext` and
factory `BehaviourContext(TelegramBot, CoroutineScope, FlowsUpdatesFilter)`
* Extension `buildBehaviour` (and all related extensions/functions) for opportunity to pass
`defaultExceptionsHandler`
* Trigger `onContentMessage` and waiter `waitContentMessage` now may include media groups
2021-06-24 06:56:15 +00:00
* `API`:
* All `reply` and subsequent extensions have been replaced in send package
* `Utils`:
* With class casts like `as*` and `require*` now you may use `when*` with parameter callback
* Methods of `EntitiesBuilder` now will return builder itself, so you may create sequences like
`buildEntities { bold("Hello,") + italic(" world") }` directly in `buildEntities` body
* New extension `TelegramBot#longPollingFlow` has been added with returning value `Flow` with updates
2021-06-25 19:27:28 +00:00
* `Bot API 5.3`:
* Add type `BotCommandScope`, its serializer `BotCommandScopeSerializer` and all its children
2021-06-25 19:42:35 +00:00
* New request `DeleteMyCommands` and updates in `GetMyCommands` and `SetMyCommands`
2021-06-25 19:58:20 +00:00
* Renames according to `And more` of [June 25, 2021](https://core.telegram.org/bots/api-changelog#june-25-2021) update
2021-06-23 15:51:30 +00:00
2021-05-26 15:51:29 +00:00
## 0.35.0
2021-05-29 08:31:44 +00:00
**ALL PREVIOUS DEPRECATIONS HAVE BEEN REMOVED**
2021-06-03 17:09:46 +00:00
**JS PART NOW USE IR COMPILER ONLY**
2021-05-29 08:31:44 +00:00
2021-05-26 15:55:09 +00:00
* `Common`:
* `Version`:
2021-05-29 07:29:01 +00:00
* `Kotlin`: `1.4.72` -> `1.5.10`
2021-06-05 09:48:38 +00:00
* `MicroUtils`: `0.4.36` -> `0.5.6`
2021-05-26 15:55:09 +00:00
* `Coroutines`: `1.4.3` -> `1.5.0`
* `Serialization`: `1.1.0` -> `1.2.1`
2021-05-26 16:00:57 +00:00
* `Klock`: `2.0.7` -> `2.1.2`
2021-05-26 15:55:09 +00:00
* `UUID`: `0.2.3` -> `0.3.0`
2021-05-29 07:29:01 +00:00
* `Ktor`: `1.5.4` -> `1.6.0`
* `Core`:
* `ForceReply` has been renamed to `ReplyForce`
2021-05-29 08:32:45 +00:00
* `Captioned` and `Explained` interfaces have been removed
* `RecordAudioAction` and `UploadAudioAction` (and all related to these actions functionality) have been removed
2021-06-03 17:09:46 +00:00
* `TextSource` interface and all related things have been replaced
2021-06-03 17:25:19 +00:00
* `CallbackQuery` interface and all its extenders/implementers become `sealed`
2021-06-03 17:34:11 +00:00
* `InputMedia` interface and all its extenders/implementers become `sealed`
* `ParseMode` interface and all its extenders/implementers become `sealed`
* `ChatMember` becomes `sealed`
* `KeyboardMarkup` becomes `sealed`
2021-06-03 17:25:19 +00:00
* `LeftChatMember` and `MemberChatMember` become interfaces. All their code were replaced to the `*Impl` classes
2021-06-03 17:34:11 +00:00
* Most of `sealed` classes have been modified to be interfaces
2021-06-03 19:07:53 +00:00
* Most serializers becomes public, but they are still `RistFeature`
* For `EntitiesBuilder` multilevel text sources builders with callback have been added
2021-05-26 15:55:09 +00:00
2021-05-05 12:53:26 +00:00
## 0.34.1
2021-05-05 13:12:59 +00:00
* `Common`:
* `Version`:
* `ktor`: `1.5.3` -> `1.5.4`
2021-05-05 13:20:51 +00:00
* `MicroUtils`: `0.4.35` -> `0.4.36`
2021-05-05 13:02:22 +00:00
* `Core`
* Fix in creating of text sources list
2021-04-26 13:15:55 +00:00
## 0.34.0
2021-05-06 07:24:11 +00:00
_**It is recommended to use [0.34.1](https://github.com/InsanusMokrassar/TelegramBotAPI/releases/tag/0.34.1) version due to the bug in 0.34.0 related to rewriting of `TextSource`s creating mechanism.**_
2021-04-28 13:59:30 +00:00
**UPDATE UP TO Telegram Bot API 5.2**
2021-05-06 07:24:23 +00:00
2021-04-28 13:59:30 +00:00
_**ALL OLD DEPRECATIONS WERE REMOVED**_
2021-04-26 13:28:19 +00:00
* `Core`:
2021-04-29 09:26:08 +00:00
* Type `ChatType` has been added
2021-04-29 11:45:19 +00:00
* New `ExtendedChat` for unknown messages `UnknownExtendedChat` has been added
2021-04-26 13:28:19 +00:00
* `SendInvoice#startParameter` becomes optional and replaced in `SendInvoice` constructor
2021-04-27 17:43:04 +00:00
* New interface `CommonSendInvoiceData` has been added
2021-04-29 05:52:38 +00:00
* Fields `CommonSendInvoiceData#maxTipAmount` and `CommonSendInvoiceData#suggestedTipAmounts` have been added
2021-04-26 14:23:26 +00:00
* New type `InputInvoiceMessageContent` has been added
2021-04-29 05:52:38 +00:00
* New interface `TextedWithTextSources` on top of `Texted` interface
* Interface `TextedInput` now extends `TextedWithTextSources` with overriding of `textSources` field as not
nullable
* `textSources` become main field in `TextedInput`
* **MIGRATION** Remove all `import dev.inmo.tgbotapi.CommonAbstracts.textSources` in your project
* `textEntities` become are calculable property in `TextedInput`
* Interface `Captioned` and `CaptionedInput` now is deprecated
* Most of captions usages were replaced with texts
* Interface `Explained` and `ExplainedInput` now is deprecated
2021-04-27 17:43:04 +00:00
* Most of captions usages were replaced with texts
2021-04-28 14:08:02 +00:00
* Interface `VoiceChatEvent` now is `CommonEvent`
2021-04-29 11:33:27 +00:00
* Mechanism of `RawMessageEntity` converting were fully rewritten
2021-04-26 13:28:19 +00:00
2021-04-12 14:57:12 +00:00
## 0.33.4
2021-04-12 17:32:50 +00:00
* `Common`:
* `Version`:
* `uuid`: `0.2.3` -> `0.2.4`
2021-04-15 08:34:05 +00:00
* `MicroUtils`: `0.4.33` -> `0.4.35`
2021-04-12 17:23:18 +00:00
* `Core`:
* All `TextSource` implementators have become `Serializable`
* New serializer `TextSourceSerializer`
2021-04-16 12:07:27 +00:00
* Interface`FromUserMessage` now extends `Message`
* New interface `FromUser`
* Interface `FromUserMessage` now extends `FromUser`
2021-04-12 19:54:16 +00:00
* `Extensions Utils`
* Fixes in `parseCommandsWithParams`
2021-04-12 17:23:18 +00:00
2021-04-05 07:42:48 +00:00
## 0.33.3
2021-04-05 11:21:59 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.4.32` -> `0.4.33`
2021-04-05 12:11:29 +00:00
* `Ktor`: `1.5.2` -> `1.5.3`
2021-04-05 13:08:12 +00:00
* `API`:
* Bot actions DSL (fix for [#358](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/358))
2021-04-05 10:41:27 +00:00
* `Behaviour Builder`:
* Rewrite logic of `doInSubContextWithUpdatesFilter` and `doInSubContextWithFlowsUpdatesFilterSetup` extensions
* All triggers now work with `stopOnCompletion` set up to `false`
2021-04-03 08:24:24 +00:00
## 0.33.2
2021-04-03 09:13:20 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.4.30` -> `0.4.32`
2021-04-03 08:51:21 +00:00
* `Behaviour Builder`:
* New typealias `MediaGroupFilter` has been added for `MediaGroup` expectators
* Several typealiases became `suspend`:
* `CallbackQueryMapper`
* `ChatMemberUpdatedMapper`
* `InlineQueryMapper`
* Commands got an additional parameter - `additionalFilter`. It will be called when all command filters were passed
2021-03-19 14:18:32 +00:00
## 0.33.1
2021-03-19 14:20:07 +00:00
* `Common`:
* `Version`:
2021-03-24 07:14:09 +00:00
* `Kotlin`: `1.4.31` -> `1.4.32`
2021-03-19 14:20:07 +00:00
* `MicroUtils`: `0.4.29` -> `0.4.30`
* `Klocks`: `2.0.6` -> `2.0.7`
* `Utils Extensions`:
* Add extensions `parseCommandsWithParams`
2021-03-19 14:20:07 +00:00
2021-03-11 15:44:08 +00:00
## 0.33.0
2021-03-09 10:45:13 +00:00
2021-03-12 08:58:13 +00:00
**UPDATE UP TO Telegram Bot API 5.1**
_**ALL DEPRECATIONS WERE REMOVED**_
2021-03-09 10:46:08 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.4.28` -> `0.4.29`
2021-03-11 10:00:47 +00:00
* `Core`:
* `AdministratorChatMemberSerializer` and `ChatMemberSerializer` has changed their visibility: they are public for now
2021-03-12 08:58:13 +00:00
* Add `ChatInviteLinkRequest` with subrequests like `KnownChatInviteLinkRequest`
* Add `CreateChatInviteLink`/`EditChatInviteLink`/`RevokeChatInviteLink` requests
* Update `KickChatMember` to include `revokeMessages` flag
* Update `PromoteChatMember` to include `canManageVoiceChats` and `canManageChat` flags
* Add `ChatInviteLink` object
* Add `PrimaryInviteLink` for `ChatInviteLink` with `isPrimary == true`
* Add `CommonInviteLink` for `ChatInviteLink` with `isPrimary == false`
* `AdministratorChatMemberSerializer` has been set as public for several versions
* `ChatMemberSerializer` has been set as public for several versions
* Add `ChatMemberUpdated`
* Add `MessageAutoDeleteTimerChanged`
* Add `VoiceChatEvent`
* Add `VoiceChatEnded`
* Add `VoiceChatParticipantsInvited`
* Add `VoiceChatStarted`
* Add `ChatMemberUpdatedUpdate`
* Add `CommonChatMemberUpdatedUpdate`
* Add `MyChatMemberUpdatedUpdate`
* `API`:
* All API extensions has been updated
2021-03-09 10:54:32 +00:00
* `Behaviour Builder`:
2021-03-11 10:00:47 +00:00
* Now content triggers and expectators will wait for channel posts too
2021-03-12 08:58:13 +00:00
* New waiters and triggers for `ChatMemberUpdated` and its variations
2021-03-09 10:46:08 +00:00
2021-02-28 16:21:57 +00:00
## 0.32.9
2021-02-28 16:24:34 +00:00
* `Common`:
* `Version`:
* `Kotlin`: `1.4.30` -> `1.4.31`
* `Ktor`: `1.5.1` -> `1.5.2`
2021-03-02 09:26:52 +00:00
* `MicroUtils`: `0.4.26` -> `0.4.28`
2021-03-03 16:32:44 +00:00
* `Coroutines`: `1.4.2` -> `1.4.3`
2021-02-28 16:24:34 +00:00
2021-02-21 15:13:23 +00:00
## 0.32.8
2021-02-21 15:15:40 +00:00
* `Common`:
* `Version`:
* `Serialization`: `1.1.0-RC` -> `1.1.0`
2021-02-21 16:50:47 +00:00
* `MicroUtils`: `0.4.25` -> `0.4.26`
2021-02-21 15:15:40 +00:00
2021-02-17 16:00:46 +00:00
## 0.32.7
2021-02-17 16:12:58 +00:00
* `Core`:
2021-02-17 18:28:36 +00:00
* New variable `LeftRestrictionsChatPermissions` and `RestrictionsChatPermissions`
2021-02-17 16:29:29 +00:00
* `Extensions Utils`:
* `DiceAnimationType` class casts
2021-02-17 16:11:26 +00:00
* `Behaviour Builder`:
* Now `doInSubContextWithUpdatesFilter` and `doInSubContext` will automatically subscribe on updates of parent
`BehaviourContext`
* `doInSubContextWithFlowsUpdatesFilterSetup`, `doInSubContextWithUpdatesFilter` and `doInSubContext` got new
parameter `stopOnCompletion` to be able to disable stopping of behaviour context on finishing
2021-02-16 07:47:31 +00:00
## 0.32.6
2021-02-16 07:48:32 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.4.24` -> `0.4.25`
2021-02-17 11:10:21 +00:00
* `Extensions API`:
* New extension `TelegramBot#replyWithDice`
2021-02-17 10:58:57 +00:00
* `Extensions Utils`:
* `SlotMachineReelImages` has been renamed to `SlotMachineReelImage`
* `SlotMachineReelImage` got two built-in parameters: `text` and `number`
2021-02-17 11:10:21 +00:00
* New extension `String#asSlotMachineReelImage`
2021-02-16 07:48:32 +00:00
2021-02-08 05:35:51 +00:00
## 0.32.5
2021-02-08 12:15:54 +00:00
* `Core`:
* Add `mention` variants for user ids and receiver variants ([#294](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/294))
2021-02-08 13:35:32 +00:00
* Now `AbstractRequestCallFactory` will set up one-second delay for zero timeouts in `GetUpdate` requests
* Several extensions for `TelegramBotAPI` like `retrieveAccumulatedUpdates` have been added as a solution for
[#293](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/293)
2021-02-09 11:15:28 +00:00
* Links for `tg://user?id=<user_id>` have been updated ([#292](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/292))
2021-02-09 13:07:31 +00:00
* All usages of captions or texts in resends and same things have been replaced with `textSources`
* Global `defaultParseMode` has been added ([#291](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/291))
2021-02-08 12:15:54 +00:00
2021-02-03 16:59:37 +00:00
## 0.32.4
2021-02-03 17:05:17 +00:00
* `Common`:
* `Version`:
* `Kotlin`: `1.4.21` -> `1.4.30`
2021-02-05 08:22:42 +00:00
* `Klock`: `2.0.4` -> `2.0.6`
2021-02-05 10:08:45 +00:00
* `MicroUtils`: `0.4.23` -> `0.4.24`
2021-02-07 10:54:48 +00:00
* `Core`:
* Renames:
* `ChannelMessage` -> `ChannelContentMessage`
* `PublicMessage` -> `PublicContentMessage`
* `GroupMessage` -> `GroupContentMessage`
* `FromChannelGroupMessage` -> `FromChannelGroupContentMessage`
* `AnonymousGroupMessage` -> `AnonymousGroupContentMessage`
* `CommonGroupMessage` -> `CommonGroupContentMessage`
* `PrivateMessage` -> `PrivateContentMessage`
* `Extensions Utils`:
* Renames of extensions in `ClassCasts` according to changes in `Core`
2021-02-03 17:05:17 +00:00
2021-02-02 05:07:30 +00:00
## 0.32.3
2021-02-02 05:17:51 +00:00
* `Behaviour Builder`:
* Add expectators and waiters for inline queries
2021-02-01 15:04:54 +00:00
## 0.32.2
* `Core`:
* Fix of [#275](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/275)
2021-01-30 13:33:38 +00:00
## 0.32.1
2021-01-30 13:35:53 +00:00
* `Core`:
* Fix of [#272](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/272)
2021-01-30 14:05:07 +00:00
* `Utils`:
* Fix of [#273](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/273)
2021-01-30 13:35:53 +00:00
## 0.32.0
2021-01-14 06:37:31 +00:00
2021-01-19 05:00:12 +00:00
**THIS UPDATE CONTAINS BREAKING CHANGES**
* `Common`:
* `Version`:
2021-01-28 10:03:30 +00:00
* `MicroUtils`: `0.4.16` -> `0.4.23`
* `Klock`: `0.2.3` -> `0.2.4`
2021-01-28 16:06:52 +00:00
* `Ktor`: `1.5.0` -> `1.5.1`
* `Core`:
2021-01-19 12:50:45 +00:00
* **BREAKING CHANGE** Now `MediaGroupMessage` have a generic type related to `MediaGroupContent`
* Methods and types related to `MediaGroupMessage` have been modified according to their meanings
2021-01-19 12:50:45 +00:00
* **Important Change** `FlowsUpdatesFilter` now is an interface. Old class has been renamed to
`DefaultFlowsUpdatesFilter` and factory method `FlowsUpdatesFilter` has been added
2021-01-29 07:28:18 +00:00
* **PASSPORT** Full support of `Telegram Passport API`
* `PassportData`
* All variants of `EncryptedPassportElement`
* All variants of `SecureValue`
* All variants of `PassportElementError`
* New request `SetPassportDataErrors`
* `Credentials`:
* `EncryptedCredentials`
* `DeryptedCredentials`
* `EndDataCredentials`
2021-01-19 12:50:45 +00:00
* `Behaviour Builder`:
* Trigger and expectation extensions for `MessageContent` (`onContentMessage` and `waitContentMessage`)
* `onMediaGroup` has been replaced
* `waitMediaGroup` has been added
* `onVisualMediaGroup` now is just an alternative to `onVisualGallery`
* `command` and `onCommand` expectations has been added for commands `String` variant
* New extensions `BehaviourContext#oneOf`, `BehaviourContext#parallel` and `Deferred<T>#withAction`
2021-01-29 07:28:18 +00:00
* Several renames:
* `waitAudioMediaGroup` -> `waitAudioMediaGroupContent`
* `waitDocumentMediaGroup` -> `waitDocumentMediaGroupContent`
* `waitMediaGroup` -> `waitAnyMediaGroupContent`
* `waitVisualMediaGroup` -> `waitVisualMediaGroupContent`
* New extensions `BehaviourContext#waitPassportMessagesWith` and `BehaviourContext#waitAnyPassportMessages`
* New extensions `BehaviourContext#onPassportMessage` and `BehaviourContext#onPassportMessageWith`
* `Utils`:
* New `ClassCasts` for
* `Message`
* **PASSPORT** `EncryptedPassportElement`
* **PASSPORT** `PassportElementError`
* **PASSPORT** `SecureValue`
* Several tools for decryption have been added:
* `AESDecryptor` is available for `JVM` platform
* Extensions `EncryptedCredentials#decryptWithPKCS8PrivateKey` are available for `JVM`
platform
* Extensions `EndDataCredentials#decryptData` and `FileCredentials#decryptFile` have been added
* Several extensions `createDecryptor`
* Several extensions `doInDecryptionContextWithPKCS8Key`
* New extension `Flow#passportMessages`
* In most of webhook setting up functions/methods now available parameter `mediaGroupsDebounceTimeMillis`
2021-01-25 04:43:51 +00:00
* `API`:
* **PASSPORT** New extensions `TelegramBot#setPassportDataErrors`
2021-01-08 10:58:25 +00:00
## 0.31.0
2021-01-09 16:35:41 +00:00
**THIS UPDATE CONTAINS BREAKING CHANGES**
2021-01-09 12:25:11 +00:00
* `Common`:
2021-01-09 16:35:41 +00:00
* **ALL DEPRECATIONS CREATED SINCE 0.30.0 WERE REMOVED**
* `Behaviour Builder`:
* Extension `TelegramBot#buildBehaviour` have changed its return value: now it is `Job` instead of
`FlowsUpdatesFilter`
2021-01-09 16:10:38 +00:00
* `Utils`
* New extensions `TelegramBot#longPolling` were added as new recommended way to start getting updates via long
polling
* Old extensions `RequestsExecutor#startGettingFlowsUpdatesByLongPolling` has been deprecated
2021-01-06 09:41:27 +00:00
## 0.30.13
2021-01-08 10:41:08 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.4.15` -> `0.4.16`
* `Core`:
* New variable `FlowsUpdatesFilter#allUpdatesWithoutMediaGroupsGroupingFlow` which will contains updates without
`SentMediaGroupUpdate`
* `Utils`:
* Extensions for `ResendableContent` has been added
* Extensions for `TextSource` has been added
2021-01-08 10:37:03 +00:00
* `Behaviour Builder`:
* Project has been created :)
2021-01-04 18:16:11 +00:00
## 0.30.12
2021-01-05 05:54:02 +00:00
* `Utils`:
* Class casts has been added. Now you can write something like `message.asGroupMessage() ?.let { ... }` instead of
`(message as? GroupMessage<*>) ?.let { ... }`
2020-12-13 16:25:57 +00:00
## 0.30.11
2020-12-16 08:25:09 +00:00
* `Common`:
* `Version`:
2020-12-23 07:42:00 +00:00
* `MicroUtils`: `0.4.11` -> `0.4.15`
2021-01-04 08:29:06 +00:00
* `Klock`: `2.0.1` -> `2.0.3`
2020-12-22 11:34:14 +00:00
* `Ktor`: `1.4.3` -> `1.5.0`
2021-01-02 09:51:26 +00:00
* `Core`:
* All bot actions got functions for short calling, like `recordVideo` for `RecordVideoNote`
2021-01-02 10:06:00 +00:00
* All bot actions got class-cast shortcuts
2020-12-16 08:25:09 +00:00
2020-12-04 10:06:14 +00:00
## 0.30.10
2020-12-04 10:13:02 +00:00
* `Common`:
* `Version`:
2020-12-08 06:03:45 +00:00
* `Kotlin`: `1.4.20` -> `1.4.21`
2020-12-04 10:13:02 +00:00
* `Klock`: `2.0.0` -> `2.0.1`
* `Ktor`: `1.4.2` -> `1.4.3`
2020-12-08 06:03:45 +00:00
* `MicroUtils`: `0.4.6` -> `0.4.11`
2020-12-04 10:29:50 +00:00
* `API Extensions`:
* New function `buildBot`
2020-12-04 10:13:02 +00:00
2020-11-25 17:01:19 +00:00
## 0.30.9
2020-11-25 17:02:54 +00:00
* `Common`:
* `Version`:
* `UUID`: `0.2.2` -> `0.2.3`
2020-11-26 18:44:29 +00:00
* `Coroutines`: `1.4.1` -> `1.4.2`
* `MicroUtils`: `0.4.3` -> `0.4.6`
2020-11-25 17:09:49 +00:00
* `Core`:
* Add `BowlingDiceAnimationType`
2020-11-25 17:02:54 +00:00
2020-11-21 08:32:32 +00:00
## 0.30.8
2020-11-21 08:40:34 +00:00
* `Common`:
* `Version`:
* `Kotlin`: `1.4.10` -> `1.4.20`
* `Klock`: `1.12.1` -> `2.0.0`
2020-11-21 09:15:07 +00:00
* `MicroUtils`: `0.4.1` -> `0.4.3`
2020-11-21 08:40:34 +00:00
2020-11-17 06:50:54 +00:00
## 0.30.7
2020-11-17 06:51:55 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.4.0` -> `0.4.1`
* `Core`:
* `TelegramAPIUrlsKeeper` will fix ending of host url since this version
* New mechanisms in`PowLimiter` and `CommonLimiter` has been added
2020-11-17 10:06:25 +00:00
* New builder `KtorRequestsExecutorBuilder`
* New function `telegramBot`
* `Utils`:
* Simple function `telegramBot(TelegramAPIUrlsKeeper)` has been deprecated with replacement by almost the same
function in `Core`
2020-11-17 06:51:55 +00:00
2020-11-15 17:05:19 +00:00
## 0.30.6
2020-11-16 07:32:20 +00:00
* `Core`
* `TextSource` properties has been renamed:
* `asMarkdownSource` -> `markdown`
* `asMarkdownV2Source` -> `markdownV2`
* `asHtmlSource` -> `html`
* `PrivateChat` override `id` property with type `UserId`
* Several new extensions and functions in links creation:
* New function `makeUsernameLink` with parameter `String`
* New extension `Username#link` and function `makeLink(Username)`
* Function `makeLinkToMessage` now able to get any type of chat
* New extension `Message#link`
* Old functions `makeLinkToAddStickerSet...` has been deprecated:
* `makeLinkToAddStickerSet`
* `makeLinkToAddStickerSetInMarkdownV2`
* `makeLinkToAddStickerSetInMarkdown`
* `makeLinkToAddStickerSetInHtml`
2020-11-16 07:32:20 +00:00
2020-11-14 05:19:53 +00:00
## 0.30.5
2020-11-14 13:41:26 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.3.3` -> `0.4.0`
* `Core`:
* Mechanism of `ChatMember` serialization has been changed
* Since this version any `ChatMember` can be serialized (even outside in case it marked by `@Serializable`)
* Since this version any `ChatMember` (included in this project) can be deserialized in common way
* `User` property `id` has changed its type: now it is `UserId` (under the hood it is the same as `ChatId`)
2020-11-12 10:31:02 +00:00
## 0.30.4
2020-11-12 10:33:48 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.3.1` -> `0.3.3`
* `Core`:
* `MultilevelTextSource#textSources` has been safely renamed to `subsources`
2020-11-12 10:57:32 +00:00
* `TextContent#fullEntitiesList` has been deprecated
* Now `TextContent` implements `TextedInput`
* `TextContent#entities` has been deprecated
2020-11-12 11:44:33 +00:00
* `GroupEventMessage` now overrides `chatEvent` with type `GroupEvent`
* `SupergroupEventMessage` now overrides `chatEvent` with type `SupergroupEvent`
2020-11-12 15:54:14 +00:00
* Any `ChatEventMessage` now have generic type of its `chatEvent` (just like messages)
* `Utils`:
* Old extensions related to chat events are deprecated:
* `Flow<ChatEventMessage<*>>#divideBySource`
* `Flow<ChatEventMessage<*>>#onlyChannelEvents`
* `Flow<ChatEventMessage<*>>#onlyGroupEvents`
* `Flow<ChatEventMessage<*>>#onlySupergroupEvents`
* A lot of extensions for `Flow<ChatEventMessage>` has been added:
2020-11-12 16:35:27 +00:00
* `FlowsUpdatesFilter#events`
* `FlowsUpdatesFilter#channelEvents`
2020-11-12 16:35:27 +00:00
* `FlowsUpdatesFilter#groupEvents`
* `FlowsUpdatesFilter#supergroupEvents`
* And a lot of other filters with specific types
2020-11-12 10:33:48 +00:00
2020-11-11 04:14:10 +00:00
## 0.30.3
2020-11-11 04:15:06 +00:00
* `Common`:
* `Version`:
* `MicroUtils`: `0.3.0` -> `0.3.1`
2020-11-11 04:23:20 +00:00
* `Core`:
* New type of requests exceptions `TooMuchRequestsException`. In fact it will be rare case when you will get this
exception
* `EmptyLimiter` has been renamed to `ExceptionsOnlyLimiter` and currently will stop requests after
`TooMuchRequestsException` happen until retry time is actual
2020-11-11 05:23:24 +00:00
* Now `ExceptionsOnlyLimiter` (previously `EmptyLimiter`) is a class
2020-11-11 04:23:20 +00:00
* `AbstractRequestCallFactory` currently will not look at the response and wait if it have `RetryAfter` error. New
behaviour aimed on delegating of this work to `RequestsLimiter`
2020-11-11 04:15:06 +00:00
2020-11-10 14:01:22 +00:00
## 0.30.2
2020-11-10 14:56:11 +00:00
* `Common`:
* `Version`:
* `Ktor`: `1.4.1` -> `1.4.2`
2020-11-10 14:44:39 +00:00
* `Core`:
* New sealed class `SetWebhookRequest` which can be used in `SetWebhook` requests
* `Utils`:
* Extensions `setWebhookInfoAndStartListenWebhooks` has been united in one extension with `SetWebhookRequest`
incoming parameter
2020-11-08 06:07:14 +00:00
## 0.30.1
* `Common`:
* `Version`:
* `MicroUtils`: `0.2.7` -> `0.3.0`
2020-11-08 15:19:26 +00:00
* `Utils`:
* Builder-style DSL for text sources - `buildEntities` (thanks to [djaler](https://github.com/djaler))
2020-11-08 15:19:26 +00:00
2020-11-04 16:06:44 +00:00
## 0.30.0 Bot API 5.0
**THIS UPDATE CONTAINS A LOT OF BREAKING CHANGES. PLEASE, BE CAREFUL ON UPGRADING OF YOUR PROJECT**
2020-11-05 15:42:31 +00:00
* `Common`:
* `Version`:
* `Coroutine`: `1.4.0` -> `1.4.1`
* **NEW** `MicroUtils`: `0.2.7`
2020-11-04 16:17:17 +00:00
* `Core`:
* Support of `logOut` method (`LogOut` object as a `Request`)
* Support of `close` method (`Close` object as a `Request`)
2020-11-04 16:43:26 +00:00
* `SetWebhook` updates:
* New field `ipAddress`. It works the same as `ip_address` in [setWebhook](https://core.telegram.org/bots/api#setwebhook)
section
* New field `dropPendingUpdates`. It works the same as `drop_pending_updates` in [setWebhook](https://core.telegram.org/bots/api#setwebhook)
section
2020-11-04 16:46:08 +00:00
* New field `ExtendedPrivateChat#bio`
2020-11-04 17:10:39 +00:00
* New data class `ChatLocation`
* New field `UnbanChatMember#onlyIfBanned`
* New fields `ExtendedChannelChat#linkedGroupChatId` and `ExtendedSupergroupChat#linkedChannelChatId`
* New fields `ExtendedSupergroupChat#location`
2020-11-04 17:21:25 +00:00
* New fields `AudioFile#fileName` and `VideoFile#fileName`
2020-11-04 17:33:48 +00:00
* New fields `SendDocument#disableContentTypeDetection` and `InputMediaDocument#disableContentTypeDetection`
2020-11-04 17:44:13 +00:00
* New request `UnpinAllChatMessages`
* New parameter for `unpinChatMessage` method: `messageId`
2020-11-04 17:47:01 +00:00
* New dice type `FootballDiceAnimationType`
2020-11-04 17:52:22 +00:00
* Limits for dices has been changed
* `commonDiceResultLimit` has been deprecated
* New field `DiceAnimationType#valueLimits`
2020-11-04 19:12:14 +00:00
* Locations updates:
* New interface `Headed` with property `heading`
* New interface `HorizontallyAccured` with property `horizontalAccuracy`
* New interface `ProximityAlertable` with property `proximityAlertRadius`
* `Location` class has been separated:
* `StaticLocation` for static locations
* `LiveLocation` for live locations
* Property `Livable#livePeriod` now use typealias type `Seconds` (the same by meaning - `Int`)
* `EditLocationMessage` now extends `Locationed`, `HorizontallyAccured`, `ProximityAlertable` and `Headed` interfaces
* New properties in `EditChatMessageLiveLocation`: `horizontalAccuracy`, `heading`, `proximityAlertRadius`
* New properties in `EditInlineMessageLiveLocation`: `horizontalAccuracy`, `heading`, `proximityAlertRadius`
* Main constructor of `SendLocation` now is internal. Instead of that currently available next factories:
* `SendLocation` - sending of static location without live parameters
* `SendStaticLocation` - sending of static location without live parameters
* `SendLiveLocation` - sending of live location with live parameters
* `PositionedSendMessageRequest` now extends `Locationed`
* `LocationContent#createResend` now can create `LiveLocation`
* Support of `ProximityAlertTriggered`. It is `CommonEvent`
2020-11-04 19:15:03 +00:00
* Property `pollQuestionTextLength` now have maximum up to `300`
* Anonymous Admins:
* New field `AdministratorChatMember#isAnonymous`
* Several new interfaces of messages:
* `SignedMessage` - any message which possibly have `authorSignature`
* `WithSenderChatMessage` - any message which have `senderChat`. Property `senderChat` is not-nullable due to
separation of implementators
* `PublicMessage` - all channel messages have property `val chat: PublicChat` instead of common `val chat: Chat`
* `ChannelMessage` - all channel messages have property `val chat: ChannelChat` instead of common `val chat: Chat`
* Old `ChannelMessage` was safely renamed to `ChannelMessageImpl` (old name was set as typealias and deprecated)
* `GroupMessage` - all group messages have property `val chat: GroupChat` instead of common `val chat: Chat`
* `FromChannelGroupMessage` - instances should have property `val channel: ChannelChat`
* `AnonymousGroupMessage` - instances may have setup property `authorSignature`
* `CommonGroupMessage` - just common message
* `PrivateMessage` - works like previous `CommonMessageImpl`
* Previous `CommonMessageImpl` safely renamed to `PrivateMessageImpl`
2020-11-05 06:47:14 +00:00
* New property `PromoteChatMember#isAnonymous`
* Update all classes which must have `entities`/`caption_entities` fields
2020-11-05 14:27:45 +00:00
* New request `CopyMessage`
2020-11-05 17:48:23 +00:00
* New extension `List<TextSource>#makeString` for more comfortable work with new api with entities
* Support for Google Places identifiers for venues
2020-11-06 06:59:55 +00:00
* New extensions for text sources separating:
* `List<TextSource>#separateForMessage`
* `List<TextSource>#separateForCaption`
* `List<TextSource>#separateForText`
2020-11-06 08:42:30 +00:00
* Rewritten work with text sources and text parts:
* Now any `Message` type with entities will have full list of entities. That means that parts without any
formatter entities will use `RegularTextSource`
* `MultilevelTextSource#textParts` has been deprecated. Now each `MultilevelTextSource` have its own
`textSources` list
* New dsl for creating of `TextSource` lists
* Built-in `handleSafely` and `ExceptionHandler` is deprecated
2020-11-07 08:44:05 +00:00
* New common factories for `StorageFile`
* `API`:
* Extensions `TelegramBot#pinChatMessage` now support any `Chat` and `Message`s from any `Chat`
2020-11-04 17:44:13 +00:00
* New extensions `TelegramBot#unpinAllChatMessages`
2020-11-05 06:48:44 +00:00
* Extensions `TelegramBot#promoteChatMember` got `isAnonymous` parameter
2020-11-06 06:07:46 +00:00
* All old api methods has been actualized to their analogs in `Core`
* All `telegramBot` with `token: String` got `apiUrl` parameter
* Factory `telegramBotWithCustomClientConfig` has been renamed to `telegramBot`
2020-11-04 16:17:17 +00:00
2020-11-02 14:10:38 +00:00
## 0.29.4
2020-11-02 14:32:46 +00:00
* `Core`:
* `diceResultLimit` now is deprecated, use `commonDiceResultLimit` instead
* New extension `slotMachineDiceResultLimit`
* `Utils`:
* New enum `SlotMachineReelImages`
* New extension `Int#asSlotMachineReelImage`
* New data class `SlotMachineResult`
* New extension `Dice#calculateSlotMachineResult`
2020-10-30 13:36:48 +00:00
## 0.29.3
2020-11-02 06:56:29 +00:00
* `Common`:
* Version updates:
* `Serialization`: `1.0.0` -> `1.0.1`
* `Core`:
* New annotation `RiskFeature`. This annotation will be applied to the things which contains unsafe types usage
* `SendMediaGroup` factory now marked with `RiskFeature`
* Media groups updates:
* New functions `SendPlaylist`
* New functions `SendDocumentsGroup`
* New functions `SendVisualMediaGroup`
* New type `VisualMediaGroupMemberInputMedia : MediaGroupMemberInputMedia`
* `InputMediaPhoto` now implements `VisualMediaGroupMemberInputMedia` instead of `MediaGroupMemberInputMedia`
* `InputMediaVideo` now implements `VisualMediaGroupMemberInputMedia` instead of `MediaGroupMemberInputMedia`
* New type `VisualMediaGroupContent : MediaGroupContent`
* `PhotoContent` now implements `VisualMediaGroupContent` instead of `MediaGroupContent`
* `VideoContent` now implements `VisualMediaGroupContent` instead of `MediaGroupContent`
* New type `AudioMediaGroupContent : MediaGroupContent`
* `AudioContent` now implements `AudioMediaGroupContent` instead of `MediaContent` and `CaptionedInput`
* New type `DocumentMediaGroupContent : MediaGroupContent`
* `DocumentContent` now implements `DocumentMediaGroupContent` instead of `MediaContent` and `CaptionedInput`
* New type `AudioMediaGroupMemberInputMedia : MediaGroupMemberInputMedia`
* `InputMediaAudio` now implements `AudioMediaGroupMemberInputMedia`
* New type `DocumentMediaGroupMemberInputMedia : MediaGroupMemberInputMedia`
* `InputMediaDocument` now implements `DocumentMediaGroupMemberInputMedia`
* New extension `AudioFile#toInputMediaAudio`
* `AudioContent` now implements `MediaGroupContent`
* New extension `DocumentFile#toInputMediaDocument`
* `DocumentContent` now implements `MediaGroupContent`
* New dice type `SlotMachineDiceAnimationType`
* New extension `TelegramMediaFile#asDocumentFile`
* New extension `VideoFile#toInputMediaVideo`
2020-11-02 07:26:06 +00:00
* New exception `WrongFileIdentifierException`
2020-11-02 07:57:44 +00:00
* Extension `String#toInputMediaFileAttachmentName` now is deprecated
* Property `ThumbedInputMedia#thumbMedia` now is deprecated
* `API`:
* New extensions for media groups:
* `TelegramBot#sendPlaylist`
* `TelegramBot#replyWithPlaylist`
* `TelegramBot#sendDocumentsGroup`
* `TelegramBot#replyWithDocumentsGroup`
* `TelegramBot#sendVisualMediaGroup`
* `TelegramBot#replyWithVisualMediaGroup`
2020-11-02 08:14:08 +00:00
* `Utils`:
* New extensions for `Flow`s:
* `Flow<SentMediaGroupUpdate>#mediaGroupVisualMessages`
* `Flow<SentMediaGroupUpdate>#mediaGroupAudioMessages`
* `Flow<SentMediaGroupUpdate>#mediaGroupDocumentMessages`
* New extensions for `FlowsUpdatesFilter`:
* `FlowsUpdatesFilter#audioMessagesWithMediaGroups`
* `FlowsUpdatesFilter#mediaGroupAudioMessages`
* `FlowsUpdatesFilter#documentMessagesWithMediaGroups`
* `FlowsUpdatesFilter#mediaGroupDocumentMessages`
* `FlowsUpdatesFilter#mediaGroupVisualMessages`
2020-10-19 14:12:18 +00:00
## 0.29.2
2020-10-27 09:01:30 +00:00
* `Common`:
* Version updates:
* `Coroutines`: `1.3.9` -> `1.4.0`
* Internal broadcast channels were replaced with `SharedFlow`
* `TelegramBotAPI-extensions-utils`:
* Extension `ReceiveChannel#debounceByValue` has been deprecated
2020-10-27 09:01:30 +00:00
## 0.29.1
* `Common`:
* Version updates:
* `Serialization`: `1.0.0-RC2` -> `1.0.0`
2020-10-04 10:52:00 +00:00
## 0.29.0
2020-08-18 04:56:05 +00:00
2020-10-04 10:52:00 +00:00
* **THIS VERSION CONTAINS BREAKING CHANGES**
* ***PROJECT PACKAGES WERE CHANGED***
2020-10-04 11:17:52 +00:00
* Packages in the whole project were changed `com.github.insanusmokrassar.TelegramBotAPI` -> `dev.inmo.tgbotapi`
* Project group in repositories were changed: `com.github.insanusmokrassar` -> `dev.inmo`
* Migration ([Examples migration](https://github.com/InsanusMokrassar/TelegramBotAPI-examples/pull/11)):
2020-10-04 11:17:52 +00:00
1. Change implementation in your gradle files:
2020-10-04 12:34:03 +00:00
* `implementation "com.github.insanusmokrassar:TelegramBotAPI-core:*"` -> `implementation "dev.inmo:tgbotapi.core:*"`
* `implementation "com.github.insanusmokrassar:TelegramBotAPI-extensions-utils:*"` -> `implementation "dev.inmo:tgbotapi.extensions.utils:*"`
* `implementation "com.github.insanusmokrassar:TelegramBotAPI-extensions-api:*"` -> `implementation "dev.inmo:tgbotapi.extensions.api:*"`
* `implementation "com.github.insanusmokrassar:TelegramBotAPI:*"` -> `implementation "dev.inmo:tgbotapi:*"`
2020-10-04 11:17:52 +00:00
2. Replace packages `com.github.insanusmokrassar.TelegramBotAPI` in the whole project by `dev.inmo.tgbotapi`
2020-08-18 06:50:11 +00:00
2020-10-04 10:52:00 +00:00
* `TelegramBotAPI-core`:
* Now in forward info you can get `ForwardFromSupergroupInfo`
* **BREAKING CHANGE** `SendVoice` factory function has changed its signature: now it have now `thumb`
(according to the [documentation](https://core.telegram.org/bots/api#sendvoice))
* `AudioFile` now can be converted to `VoiceFile`
* `VoiceFile` now can be converted to `AudioFile`
2020-10-04 10:52:00 +00:00
* `TelegramBotAPI-extensions-api`:
* ALL REQUESTS EXECUTOR USAGES WERE REPLACED WITH `TelegramBot` TYPEALIAS. It should not bring any break changes
* Internal changes of `sendRegularPoll` and `sendQuizPoll` extensions
* Variable `defaultLivePeriodDelayMillis` now is public
* All `send` extensions for `TelegramBot` got their `reply` variations (issue [#144](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/144))
* A lot of `send` extensions for `TelegramBot` got their variation with `Chat` instead of `ChatIdentifier`
2020-10-08 20:11:39 +00:00
## 0.28.4
2020-09-28 06:54:01 +00:00
2020-09-28 07:18:03 +00:00
* `Common`:
* Version updates:
* `Ktor`: `1.4.0` -> `1.4.1`
2020-09-28 07:09:58 +00:00
* `TelegramBotAPI-core`
* Interface `GroupEventMessage` has been added ([#140](https://github.com/InsanusMokrassar/TelegramBotAPI/pull/140))
* Old `GroupEventMessage` was renamed to `CommonGroupEventMessage` ([#140](https://github.com/InsanusMokrassar/TelegramBotAPI/pull/140))
* Interface `SupergroupEventMessage` has been added ([#140](https://github.com/InsanusMokrassar/TelegramBotAPI/pull/140))
* Old `SupergroupEventMessage` was renamed to `CommonSupergroupEventMessage` ([#140](https://github.com/InsanusMokrassar/TelegramBotAPI/pull/140))
* Any `GroupEventMessage` now have `from` field ([#140](https://github.com/InsanusMokrassar/TelegramBotAPI/pull/140))
* `TelegramBotAPI-extensions-utils`
* Extensions `Flow<ChatEventMessage>#onlyGroupEvents` and `Flow<ChatEventMessage>#onlySupergroupEvents` now returns
`CommonGroupEventMessage` and `CommonSupergroupEventMessage`
2020-10-08 20:11:39 +00:00
## 0.28.3
2020-09-20 14:11:27 +00:00
* Common:
2020-09-22 05:33:47 +00:00
* Version updates:
* `Klock`: `0.12.0` -> `0.12.1`
* `Kotlin serialization`: `1.0.0-RC` -> `1.0.0-RC2` (dependency `kotlinx-serialization-core` was replaced with
`kotlinx-serialization-json` due to [kotlinx.serialization library update](https://github.com/Kotlin/kotlinx.serialization/blob/master/CHANGELOG.md#100-rc2--2020-09-21))
2020-09-20 14:16:14 +00:00
* `TelegramBotAPI-core`:
* All `InlineQueryResult` has changed their type of id for more obvious relation between `InlineQueryResult#id` and
`ChosenInlineResult#resultId`: `String` -> `InlineQueryIdentifier`
2020-09-22 08:47:34 +00:00
* `TelegramBotAPI-extensions-utils`:
* Several extensions for updates flows based on `InlineQueryUpdate` has been added:
* `Flow<InlineQueryUpdate>#onlyBaseInlineQueriesWithUpdates`
* `Flow<InlineQueryUpdate>#onlyBaseInlineQueries`
* `Flow<InlineQueryUpdate>#onlyLocationInlineQueriesWithUpdates`
* `Flow<InlineQueryUpdate>#onlyLocationInlineQueries`
* Several extensions for updates flows based on `ChosenInlineResultUpdate` has been added:
* `Flow<ChosenInlineResultUpdate>.onlyBaseChosenInlineResultsWithUpdates`
* `Flow<ChosenInlineResultUpdate>.onlyBaseChosenInlineResults`
* `Flow<ChosenInlineResultUpdate>.onlyLocationChosenInlineResultsWithUpdates`
* `Flow<ChosenInlineResultUpdate>.onlyLocationChosenInlineResults`
2020-09-20 14:16:14 +00:00
2020-10-08 20:11:39 +00:00
## 0.28.2
2020-09-13 17:32:47 +00:00
2020-09-13 17:42:59 +00:00
* `TelegramBotAPI-extensions-utils`:
* Several commands shortcuts for `Flow<ContentMessage<TextContent>>` has been added:
* `filterExactCommands`
* `filterCommandsInsideTextMessages`
* `filterCommandsWithArgs`
* Extension `Flow<BaseSentMessageUpdate>.filterCommandsWithArgs` has changed its signature: now it will also have
original message paired with list of text sources
* Shortcut method `commonMessages` for `onlyCommonMessages`
* Shortcuts `onlySentViaBot` and `withoutSentViaBot` now are extensions for any `Flow` with types which implementing
`ContentMessage`
2020-09-13 17:42:59 +00:00
2020-10-08 20:11:39 +00:00
## 0.28.1
2020-09-16 13:28:05 +00:00
* Common:
* Versions updates:
* `Kotlin`: `1.4.0` -> `1.4.10`
* `UUID`: `0.2.1` -> `0.2.2`
* `TelegramBotAPI-core`:
* `ExceptionHandler` has changed its incoming type: `Exception` -> `Throwable`
* `handleSafely` has changed its signature
* `executeUnsafe` has changed its signature
2020-10-08 20:11:39 +00:00
## 0.28.0
* **THIS VERSION CONTAINS BREAKING CHANGES**
* ***PROJECT PACKAGES WERE CHANGED***
* Project `TelegramBotAPI` -> `TelegramBotAPI-core`
* Project `TelegramBotAPI-all` -> `TelegramBotAPI`
2020-04-24 10:13:02 +00:00
2020-04-24 13:26:57 +00:00
* `Common`:
2020-10-08 20:11:39 +00:00
* Version updates:
* `Kotlin`: `1.3.72` -> `1.4.0`
* `Coroutines`: `1.3.8` -> `1.3.9`
* `Serialization`: `0.20.0` -> `1.0.0-RC`
* `Klock`: `1.11.14` -> `1.12.0`
* `UUID`: `0.1.1` -> `0.2.1`
* `Ktor`: `1.3.2` -> `1.4.0`
* `buildMimeType` function now is cache-oriented getter which will save already got mime types into internal map
* All deprecations from previous versions were removed
* `TelegramBotAPI-core`:
* Typealias `TelegramBot` was added
* Fully rebuilt `KtorCallFactory` interface to be able to handle custom answers from telegram bot api system
* New implementation of `KtorCallFactory` was added: `DownloadFileRequestCallFactory`
* `DownloadFile` request was added
* All included `KtorCallFactory` realizations (except of abstract) now are objects:
* `MultipartRequestCallFactory`
* `SimpleRequestCallFactory`
* `MediaGroupMemberInputMedia` members now will not have `arguments` property due to redundancy and buggy of that
* Field `media` now is common for all `InputMedia` objects
* `TelegramBotAPI-extensions-api`:
2020-10-08 20:11:39 +00:00
* Extensions `TelegramBot#downloadFile` were added
2020-04-24 14:01:20 +00:00
* `TelegramBotAPI-extensions-utils`:
2020-10-08 20:11:39 +00:00
* All extensions for media groups (except of `mediaGroupId`) have changed their context: `List<MediaGroupMessage>`
-> `List<CommonMessage<MediaGroupContent>>`
* `forwardInfo`
* `replyTo`
* `chat`
* `createResend` (several extensions)
* Several extensions for downloading of files:
* `HttpClient#loadFile`
* `PathedFile#download`
2020-04-24 10:18:07 +00:00
2020-10-08 20:11:39 +00:00
## 0.27.11
2020-08-12 19:08:44 +00:00
2020-08-14 13:26:51 +00:00
* `TelegramBotAPI`:
* Extension `String#filenameFromUrl` was created
* Extension `PathedFile#filename` was created
2020-08-12 19:19:12 +00:00
* `TelegramBotAPI-extensions-utils`:
* `Flow<Iterable<T>>.flatMap` extension was added
* Extensions for `FlowUpdatesFilter` were added:
* `FlowsUpdatesFilter#allSentMessagesFlow` (combination of `messageFlow` and `channelPostFlow`)
* `FlowsUpdatesFilter#allSentMediaGroupsFlow` (combination of `messageMediaGroupFlow` and `channelPostMediaGroupFlow`)
* `FlowsUpdatesFilter#sentMessages`
* `FlowsUpdatesFilter#sentMessagesWithMediaGroups`
* `FlowsUpdatesFilter#photoMessagesWithMediaGroups`
* `FlowsUpdatesFilter#imageMessagesWithMediaGroups`
* `FlowsUpdatesFilter#videoMessagesWithMediaGroups`
* `FlowsUpdatesFilter#mediaGroupMessages`
* `FlowsUpdatesFilter#mediaGroupPhotosMessages`
* `FlowsUpdatesFilter#mediaGroupVideosMessages`
2020-08-12 19:19:12 +00:00
* A lot of extensions like `Flow<BaseSentMessageUpdate>#textMessages` were added:
* `Flow<BaseSentMessageUpdate>#animationMessages`
* `Flow<BaseSentMessageUpdate>#audioMessages`
* `Flow<BaseSentMessageUpdate>#contactMessages`
* `Flow<BaseSentMessageUpdate>#diceMessages`
* `Flow<BaseSentMessageUpdate>#documentMessages`
* `Flow<BaseSentMessageUpdate>#gameMessages`
* `Flow<BaseSentMessageUpdate>#invoiceMessages`
* `Flow<BaseSentMessageUpdate>#locationMessages`
* `Flow<BaseSentMessageUpdate>#photoMessages`
* `Flow<BaseSentMessageUpdate>#imageMessages`
* `Flow<BaseSentMessageUpdate>#pollMessages`
* `Flow<BaseSentMessageUpdate>#stickerMessages`
* `Flow<BaseSentMessageUpdate>#textMessages`
* `Flow<BaseSentMessageUpdate>#venueMessages`
* `Flow<BaseSentMessageUpdate>#videoMessages`
* `Flow<BaseSentMessageUpdate>#videoNoteMessages`
* `Flow<BaseSentMessageUpdate>#voiceMessages`
* `Flow<BaseSentMessageUpdate>#mediaGroupMessages`
* `Flow<BaseSentMessageUpdate>#mediaGroupPhotosMessages`
* `Flow<BaseSentMessageUpdate>#mediaGroupVideosMessages`
2020-08-12 19:19:12 +00:00
2020-10-08 20:11:39 +00:00
## 0.27.10
2020-08-10 04:45:46 +00:00
2020-08-10 07:38:19 +00:00
* `TelegramBotAPI-extensions-api`:
* Function `telegramBot(TelegramAPIUrlsKeeper)` was added
2020-08-10 04:46:18 +00:00
* `TelegramBotAPI-extensions-utils`:
* Extension `Route#includeWebhookHandlingInRouteWithFlows` was added
2020-08-10 05:41:46 +00:00
* A lot of extensions like `FlowsUpdatesFilter#textMessages` were added:
* `FlowsUpdatesFilter#animationMessages`
* `FlowsUpdatesFilter#audioMessages`
* `FlowsUpdatesFilter#contactMessages`
* `FlowsUpdatesFilter#diceMessages`
* `FlowsUpdatesFilter#documentMessages`
* `FlowsUpdatesFilter#gameMessages`
* `FlowsUpdatesFilter#invoiceMessages`
* `FlowsUpdatesFilter#locationMessages`
* `FlowsUpdatesFilter#photoMessages`
* `FlowsUpdatesFilter#imageMessages`
* `FlowsUpdatesFilter#pollMessages`
* `FlowsUpdatesFilter#stickerMessages`
* `FlowsUpdatesFilter#textMessages`
* `FlowsUpdatesFilter#venueMessages`
* `FlowsUpdatesFilter#videoMessages`
* `FlowsUpdatesFilter#videoNoteMessages`
* `FlowsUpdatesFilter#voiceMessages`
2020-08-10 04:46:18 +00:00
2020-10-08 20:11:39 +00:00
## 0.27.9
2020-07-29 09:38:32 +00:00
2020-08-03 05:41:14 +00:00
* `Common`
* Versions updates:
* `Gradle Wrapper`: `6.5-all` -> `6.5.1-bin`
* `Coroutines`: `1.3.7` -> `1.3.8`
* `Klock`: `1.11.3` -> `1.11.14`
* `UUID`: `0.1.0` -> `0.1.1`
2020-10-08 20:11:39 +00:00
## 0.27.8
2020-06-27 03:30:25 +00:00
2020-06-27 03:43:24 +00:00
* `TelegramBotAPI`:
* `UnknownUpdateType` was renamed to `UnknownUpdate`
* Refactoring and optimization of `FlowsUpdatesFilter`
2020-10-04 12:37:55 +00:00
* `Venue` type was replaced to a new package: `com.github.insanusmokrassar.TelegramBotAPI.types.venue.Venue`
* `Venue` type now implements `Locationed` and delegate realisation to its `location` field
* `FoursquareId` and `FoursquareType` typealiases were added
2020-06-27 04:11:03 +00:00
* `TelegramBotAPI-extensions-utils`:
* Several new functions `makeLinkToMessage` was added
* `Foursquare` data class was added
* Extension `Venue#foursquare` was added
* Factory function `Venue` with `Foursquare` parameter was added
2020-06-27 03:43:24 +00:00
2020-10-08 20:11:39 +00:00
## 0.27.7
2020-06-24 14:25:51 +00:00
2020-06-24 14:51:48 +00:00
* `TelegramBotAPI`:
* Operator function `unaryPlus` was added to `RowBuilder`. Now it is possible to write `row { +button }`
* Function `flatMatrix` was added for single-row columns
* Operator extension `RowBuilder#plus` was added to be able to write things like `row { this + button }`
2020-07-02 09:55:14 +00:00
* `TelegramBotAPI-extensions-api`:
* Extensions `RequestsExecutor#sendVenue` with `Location` args were added
2020-06-24 14:51:48 +00:00
* `TelegramBotAPI-extensions-utils`:
* Function `InlineKeyboardMarkup` for flat keyboards was added
* Function `ReplyKeyboardMarkup` for flat keyboards was added
2020-10-08 20:11:39 +00:00
## 0.27.6
2020-06-05 09:17:14 +00:00
* `Common`:
* Versions:
* `Kotlin Coroutines`: `1.3.6` -> `1.3.7`
2020-06-05 07:38:05 +00:00
* `TelegramBotAPI`:
* Interface `PossiblySentViaBot` has been added
* Additional interface `PossiblySentViaBotCommonMessage` was added for more explicit typing declaration for
compiler
* Currently, only `ChannelMessage` and `CommonMessageImpl` are implementing the interface
`PossiblySentViaBotCommonMessage`. It could be changed in future
* Factory `buildMimeType` was added
* `BuiltinMimeTypes` was added
* Abstraction `ThumbedWithMimeTypeInlineQueryResult` with `thumbMimeType` field was added
* `InlineQueryResultGif` and `InlineQueryResultMpeg4Gif` now extend `ThumbedWithMimeTypeInlineQueryResult`
instead of `ThumbedInlineQueryResult`
2020-06-05 08:57:58 +00:00
* `TelegramBotAPI-extensions-utils`:
* New extensions `onlyCommonMessages`, `onlySentViaBot` and `withoutSentViaBot` was added
2020-06-05 07:38:05 +00:00
2020-10-08 20:11:39 +00:00
## 0.27.5
2020-05-31 16:43:35 +00:00
2020-06-01 06:00:06 +00:00
* `Common`:
* Versions:
* `Klock`: `1.11.1` -> `1.11.3`
2020-05-31 16:51:42 +00:00
* `TelegramotAPI`:
2020-06-01 05:44:58 +00:00
* Fix: for sending requests caption and text lengths limits were updated
2020-06-01 19:02:38 +00:00
* New variant of `row` was added
2020-06-01 19:15:08 +00:00
* `makeLinkToMessage` extensions has been deprecated (replaced into `TelegramBotAPI-extensions-utils`)
* Next things was deprecated and replaced into `TelegramBotAPI-extensions-utils`:
* All `String` formatting public extensions and functions
* All extensions like `CaptionedInput#toHtmlCaptions`
* All helper extensions for `List<BaseMessageUpdate>`
2020-06-02 07:39:09 +00:00
* All `RequestsExecutor#executeAsync` and `RequestsExecutor#executeUnsafe`
* `BotCommand` now more strictly check commands which passed to it
* Regex `BotCommandNameRegex` was added
2020-06-02 07:54:30 +00:00
* `TelegramBotAPI-extensions-api`:
* A lot of `RequesstExecutor#getChat` extensions was added for more explicit types showing
2020-06-02 13:54:13 +00:00
* New `RequesstExecutor#setMyCommands` extension was added
2020-06-02 15:18:49 +00:00
* New field `BotBuilder#ktorClientEngineFactory` introduced
* Field `BotBuilder#ktorClientEngine` now is deprecated
2020-06-01 06:56:48 +00:00
* `TelegramBotAPI-extensions-utils`:
* `safely` function was introduced. It is in `PreviewFeature` state currently
2020-06-01 19:15:08 +00:00
* `makeLinkToMessage` extensions has been added
* `makeLinkToAddStickerSet` function and its variations were added
* Next tools was added from `TelegramBotAPI`:
* All `String` formatting extensions and functions
* All extensions like `CaptionedInput#toHtmlCaptions`
* All helper extensions for `List<BaseMessageUpdate>`
* Several new extensions for `SentMediaGroupUpdate` were added:
* `SentMediaGroupUpdate#forwardInfo`
* `SentMediaGroupUpdate#replyTo`
* `SentMediaGroupUpdate#chat`
* `SentMediaGroupUpdate#mediaGroupId`
* Several `List<MediaGroupMessage>.createResend` extensions were added
2020-06-02 07:39:09 +00:00
* `RequestsExecutor#executeAsync` and `RequestsExecutor#executeUnsafe`
2020-05-31 16:51:42 +00:00
2020-10-08 20:11:39 +00:00
## 0.27.4
2020-05-22 06:56:50 +00:00
2020-05-22 07:21:22 +00:00
* `TelegramBotAPI-extensions-utils`:
* Several extensions for updates was added:
* `onlyBaseMessageUpdates`
* `onlySentMessageUpdates`
* `onlyEditMessageUpdates`
* `onlyMediaGroupsUpdates`
* `onlySentMediaGroupUpdates`
* `onlyEditMediaGroupUpdates`
2020-05-22 10:40:30 +00:00
* Renames in chat filters extensions:
* `filterBaseMessageUpdates` -> `filterBaseMessageUpdatesByChatId` and `filterBaseMessageUpdatesByChat`
* `filterSentMediaGroupUpdates` -> `filterSentMediaGroupUpdatesByChatId` and `filterSentMediaGroupUpdatesByChat`
2020-05-22 07:21:22 +00:00
2020-10-08 20:11:39 +00:00
## 0.27.3
2020-05-13 13:48:07 +00:00
* `TelegramBotAPI`:
2020-05-14 15:18:33 +00:00
* `UpdateDeserializationStrategy` is publicly available now
2020-05-14 18:28:16 +00:00
* All `setWebhook` extensions was marked as deprecated, renamed and replaced into `TelegramBotAPI-extensions-utils`
2020-05-14 07:26:56 +00:00
* Typealias `ExceptionHandler` was added - it will be used for `handleSafely`
* `SetWebhook` factories signatures was changed (backward compatibility was not broken)
2020-05-15 12:59:42 +00:00
* `executeUnsafe` now working differently
2020-05-15 13:04:10 +00:00
* Now it is possible to pass exceptions handler into `executeUnsafe`
2020-05-16 14:46:49 +00:00
* `BasketballDiceAnimationType` was added
* `UnknownDiceAnimationType` now is deprecated due to renaming - currently it is typealias for `CustomDiceAnimationType`
* `CustomDiceAnimationType` now is `data` class instead of common class
2020-05-16 16:02:57 +00:00
* `FlowsUpdatesFilter` will use size 64 by default for internal broadcast channels
2020-05-13 14:56:03 +00:00
* `TelegramBotAPI-extensions-api`:
2020-05-13 17:22:35 +00:00
* Long Polling extensions now are deprecated in this project. It was replaced into `TelegramBotAPI-extensions-utils`
2020-05-15 13:14:09 +00:00
* Several `telegramBot` functions was renamed into `telegramBotWithCustomClientConfig`
2020-05-15 16:02:53 +00:00
* Add one more `setWebhookInfo` realisation
2020-05-13 14:01:58 +00:00
* `TelegramBotAPI-extensions-utils`:
2020-05-14 07:11:46 +00:00
* Extension `toTelegramUpdate` was added
2020-05-13 17:22:35 +00:00
* Long Polling extensions were added
* Updates utils were added
2020-05-14 18:28:16 +00:00
* New extensions `startListenWebhooks`, `setWebhookInfoAndStartListenWebhooks` and `includeWebhookHandlingInRoute` was added
2020-05-13 17:22:35 +00:00
* New extension `CoroutineScope#updateHandlerWithMediaGroupsAdaptation` was added
2020-05-15 12:17:55 +00:00
* New extension `flowsUpdatesFilter` was added
2020-05-14 08:07:23 +00:00
* `TelegramBotAPI-all`:
2020-05-14 18:28:16 +00:00
* Project was created
2020-10-08 20:11:39 +00:00
## 0.27.2
2020-05-09 14:52:52 +00:00
2020-05-09 14:57:55 +00:00
* `Common`:
* Versions:
* Coroutines: `1.3.5` -> `1.3.6`
* Klock: `1.10.5` -> `1.11.1`
2020-05-10 08:37:55 +00:00
* `TelegramBotAPI`:
* Expected class `MimeType` was added
* Field `MimeTyped#mimeType` now typed by `MimeType` instead of `String`
* `MediaGroupMemberInputMedia` children now can be deserialized (but only those ones who are declared inside library)
* `TelegramBotAPI-extensions-utils`:
* Chat events splitters added:
2020-05-10 10:33:44 +00:00
* Extension `Flow<ChatEventMessage>#onlyChannelEvents` was added
* Extension `Flow<ChatEventMessage>#onlyGroupEvents` was added
* Extension `Flow<ChatEventMessage>#onlySupergroupEvents` was added
2020-05-09 14:57:55 +00:00
2020-10-08 20:11:39 +00:00
## 0.27.1
2020-04-25 03:26:10 +00:00
* `TelegramBotAPI`:
* Interface `Explained` and subsinterfaces `ExplainedInput` and `ExplainedOutput` was added
* Class `QuizPoll` now implement `ExplainedInput`
* In `QuizPoll#caption` and `QuizPoll#captionEntities` are deprecated now
* Class `SendQuizPoll` now implement `ExplainedOutput`
* In `SendQuizPoll#caption` is deprecated now
* `explanationLimit` range was added as future replacement of `quizPollExplanationLimit`
* `quizPollExplanationLimit` now is deprecated
* Extensions `toMarkdownExplanations`, `toMarkdownV2Explanations` and `toHtmlExplanations` was added
2020-04-25 03:57:59 +00:00
* Typealias `FullTextSourcesList` was added
* All extensions `fullEntitiesList` now return `FullTextSourcesList`
* All extensions of `List<TextSource>` now are extensions for `FullTextSourcesList`
* `TelegramBotAPI-extensions-api`:
* `sendQuizPoll` now is using `explanation` parameter instead of `caption`
2020-10-08 20:11:39 +00:00
## 0.27.0
2020-03-30 15:16:04 +00:00
2020-03-31 05:31:24 +00:00
* `Common`:
* Versions updates:
2020-10-08 20:11:39 +00:00
* `Kotlin`: `1.3.71` -> `1.3.72`
* `Klock`: `1.10.3` -> `1.10.5`
2020-03-30 15:30:22 +00:00
* `TelegramBotAPI`:
2020-10-08 20:11:39 +00:00
* Typealias `LongSeconds` was added for correct explanation of seconds in `Long` primitive type
* Several new fields was added:
* `explanationField`
* `explanationEntitiesField`
* `openPeriodField`
* `closeDateField`
* Extension `List<TextPart>#justTextSources` was added for mapping of `List<TextPart>` to `List<TextSource>`
* Field `SendPoll#closeInfo` was added
* Range `openPeriodPollSecondsLimit` was added and used in all `SendPoll` requests for checking income data
* `SendQuizPoll` now able to use fields `caption` and `parseMode` for `explanation` functionality
* `quizPollExplanationLimit` was added for checking `QuizPoll` explanation size
* Field `TextLinkTextSource#url` was added
* Field `TextMentionTextSource#user` was added
* Sealed class `ScheduledCloseInfo` was added
* Class `ExactScheduledCloseInfo` was added for cases with `close_date`
* Class `ApproximateScheduledCloseInfo` was added for cases with `open_period`
* Field `Poll#scheduledCloseInfo` was added
* Sealed class `MultipleAnswersPoll` was added
* Class `RegularPoll` now extends `MultipleAnswersPoll`
* `Dice` class was replaced into new package
* Sealed class `DiceAnimationType` was added
* Field `Dice#animationType` was added as `emoji` API representation
* `SendDice` now receive `animationType` as second parameter
* For `List<TextSource>` was added several extensions:
* `toMarkdownCaptions`
* `toMarkdownTexts`
* `toMarkdownV2Captions`
* `toMarkdownV2Texts`
* `toHtmlCaptions`
* `toHtmlTexts`
2020-03-30 15:33:17 +00:00
* `TelegramBotAPI-extensions-api`:
2020-10-08 20:11:39 +00:00
* All `RequestsExecutor#sendDice` extensions now accept `DiceAnimationType?` as second parameter
* All `RequestsExecutor#sendRegularPoll` extensions now accept `ScheduledCloseInfo` fourth parameter
* All `RequestsExecutor#sendQuizPoll` extensions now accept additional parameters `caption: String` and
`parseMode: ParseMode` for `explanation` functionality and `closeInfo: ScheduledCloseInfo?` for autoclose poll
functionality
* `TelegramBotAPI-extensions-utils`:
* Several shortcuts for `ScheduledCloseInfo` was added:
* `closePollExactAt`
* `closePollExactAfter`
* `closePollAfter`
2020-03-30 15:30:22 +00:00
2020-10-08 20:11:39 +00:00
## 0.26.4
2020-04-22 07:01:17 +00:00
2020-04-22 07:05:57 +00:00
* `TelegramBotAPI`:
* Now any getting of updates will return `UnknownUpdateType` when inside of deserialization will be
`SerializationException` or `NotImplemented` error
2020-04-22 07:08:05 +00:00
* `CallbackGame` currently is an object
* It is possible to use `CallbackGame` for now
* `CallbackGameInlineKeyboardButton` now will not accept `callbackGame` as income object
2020-04-22 07:16:46 +00:00
* Now it is possible to pass exception handler in webhook
2020-04-22 07:05:57 +00:00
2020-10-08 20:11:39 +00:00
## 0.26.3
2020-04-12 19:39:31 +00:00
2020-04-12 19:46:58 +00:00
* `TelegramBotAPI`:
* `CallbackGameInlineKeyboardButton` was added
([Issue-79](https://github.com/InsanusMokrassar/TelegramBotAPI/issues/79),
[PR-80](https://github.com/InsanusMokrassar/TelegramBotAPI/pull/80))
2020-04-13 05:11:09 +00:00
* `UnknownInlineKeyboardButton` was added. It is unavailable for creating, but you can receive it, for example, in
`InlineQueryResult`
* `Update` now will be created even if was `SerializationException` inside of creating the update instance - in this
case will be created `UnknownUpdateType`
* `UnknownUpdateType$rawJson` value now is included (`JsonElement`)
* **EXPERIMENTALLY** `BaseEditMessageUpdate#data` now is `CommonMessage<*>`
* Suspend inline function `handleSafely` was added
* `KtorRequestsExecutor` now use `handleSafely` instead of `try` with `supervisorScope`
* `UpdatesPolling` now use `handleSafely` instead of `try` with `supervisorScope`
2020-04-12 19:46:58 +00:00
2020-10-08 20:11:39 +00:00
## 0.26.2
2020-04-08 04:37:05 +00:00
2020-04-08 08:51:26 +00:00
* `TelegramBotAPI`:
* Now `EditMediaGroupUpdate` also extends `BaseEditMessageUpdate`
* **EXPERIMENTALLY** Now all `TextSource` realisations will contain `source` field as a property inside of them
2020-04-08 04:44:44 +00:00
* `TelegramBotAPI-extensions-api`:
* `startGettingFlowsUpdates` extension which do not require filter (but return a new one) was added
2020-04-08 05:11:31 +00:00
* `TelegramBotAPI-extensions-utils`:
* Subproject was added
2020-04-08 08:51:26 +00:00
* `filterBaseMessageUpdates`, `filterSentMediaGroupUpdates` and `filterEditMediaGroupUpdates` extensions was added
2020-04-08 09:23:12 +00:00
* `filterCommandsWithArgs`, `filterExactCommands` and `filterCommandsInsideTextMessages` extensions was added
2020-04-08 08:02:55 +00:00
* `asContentMessagesFlow`, `asChatEventsFlow` and `asUnknownMessagesFlow` extensions was added
* `withContentType` extension was added
* `onlyAnimationContentMessages` extension was added
* `onlyAudioContentMessages` extension was added
* `onlyContactContentMessages` extension was added
* `onlyDiceContentMessages` extension was added
* `onlyDocumentContentMessages` extension was added
* `onlyGameContentMessages` extension was added
* `onlyInvoiceContentMessages` extension was added
* `onlyLocationContentMessages` extension was added
* `onlyPhotoContentMessages` extension was added
* `onlyPollContentMessages` extension was added
* `onlyStickerContentMessages` extension was added
* `onlyTextContentMessages` extension was added
* `onlyVenueContentMessages` extension was added
* `onlyVideoContentMessages` extension was added
* `onlyVideoNoteContentMessages` extension was added
* `onlyVoiceContentMessages` extension was added
2020-04-08 04:44:44 +00:00
2020-10-08 20:11:39 +00:00
## 0.26.1
2020-04-01 04:05:30 +00:00
2020-04-01 04:08:44 +00:00
* `TelegramBotAPI`:
* `BotCommand` now will check and throw error in case when command or description lengths is/are incorrect
2020-04-03 08:22:34 +00:00
* `StorageFile` now is common for all platforms
* JavaScript realization was removed due to its redundancy
* JVM realization was replaced with `fun` factory
* `StorageFile` now able to accept any factory of `Input`
2020-04-03 08:26:32 +00:00
* `StorageFileInfo` was added to avoid strange collisions with throws in `StorageFile`
2020-04-04 06:11:39 +00:00
* Fixes issue with `hashTag` for markdown
2020-04-05 08:06:40 +00:00
* `InvalidPhotoDimensionsException` was added for cases when `PHOTO_INVALID_DIMENSION` answer received
2020-04-06 06:11:14 +00:00
* Other fixes
2020-04-05 08:06:40 +00:00
2020-10-08 20:11:39 +00:00
## 0.26.0
* `Common`:
* Versions updates:
* `Klock`: `1.10.0` -> `1.10.3`
* `TelegramBotAPI`:
* Request `SendDice` was added (calling [sendDice](https://core.telegram.org/bots/api#senddice))
* Class `Dice` was added (type [dice](https://core.telegram.org/bots/api#dice))
* Class `DiceContent` was added (for including it in [message](https://core.telegram.org/bots/api#message) object)
* `BotCommand` was added
* `GetMyCommands` request was added
* `SetMyCommands` request was added
* `GetMe` now is object instead of class
* `GetMe` was replaced into package `com.github.insanusmokrassar.TelegramBotAPI.requests.bot.GetMe`
* `CreateNewStickerSet` renamed to `CreateStaticNewStickerSet`
* `CreateNewAnimatedStickerSet` request was added (it handle work with `tgs_sticker`)
* `StickerSet#thumb` was added
* `AddStickerToSet` renamed to `AddStaticStickerToSet`
* `AddAnimatedStickerToSet` request was added
* `SetStickerSetThumb` request was added
* Most of sticker actions now implements `StandardStickerSetAction` instead of `StickerSetAction`
* `getUpdatesLimit` was added to be ensure in get updates limit
* `GetUpdates` now will check count of requesting updates and throw exception if it is not in range `1 .. 100`
* `GetUpdates#limit` now is not nullable and by default set up to 100
* `TelegramBotAPI-extensions-api`:
* Extensions `sendDice` was added
* Extension `getMyCommands` request was added
* Extension `setMyCommands` request was added
* Extension `getMe` was replaced into package `com.github.insanusmokrassar.TelegramBotAPI.extensions.api.bot.GetMeKt.getMe`
* **All extensions `createNewStickerSet` was renamed to `createNewStaticStickerSet`**
* Extensions `createNewAnimatedStickerSet` was added
* **All extensions `addStickerToSet` was renamed to `addStaticStickerToSet`**
* Extensions `addAnimatedStickerToSet` was added
* Extensions `setStickerSetThumb` was added
* Extension `startGettingUpdates` now will drop `SentMediaGroupUpdate` in case if it is the last in updates group
and size of retrieved updates is equal to 100 (max count of retrieved updates)
* Extensions `getUpdates` now will receive only not nullable `limit` parameter
## 0.25.1
* Update kotlin: `1.3.70` -> `1.3.71`
* Fix of error inside of update utils for media groups
2020-03-30 16:18:59 +00:00
## 0.25.0
* Common:
* Versions updates:
* `Kotlin`: `1.3.61` -> `1.3.70`
* `Kotlin coroutines`: `1.3.3` -> `1.3.5`
* `Kotlin serialization`: `0.14.0` -> `0.20.0`
* `Ktor`: `1.3.1` -> `1.3.2`
* `Klock`: `1.8.7` -> `1.10.0`
* `UUID`: `0.0.7` -> `0.1.0`
* `TelegramBotAPI`:
* `Bot` implementations (as and `Bot` itself) now have not nullable `username`
* `File#toInputFile` extension now will throw error when file does not exists
* `InlineKeyboardMarkup` will check that `PayInlineKeyboardButton` is the first in case if it is exists in
`keyboard`
* `makeLinkToMessage` now is not `PreviewFeature`
* All deprecations was removed
* `RequestException` now extends `io.ktor.utils.io.errors.IOException` instead of `kotlinx.io.IOException`
* `Any#toJson` now is NOT `inline`
* `FlowsUpdatesFilter` now as marked my annotation `FlowPreview`
* `PathedFile#fullUrl` now is not `inline` function
* `SimpleRequest#json` now is not `inline` and `internal` function
* `FlowsUpdatesFilter` now have two additional flows: `pollAnswerFlow`, `unknownUpdateTypeFlow`
* `ExtendedUser` (`typealias`) was added as a `PreviewFeature`
2020-10-08 20:11:39 +00:00
## 0.24.1
2020-02-23 14:23:33 +00:00
* `TelegramBotAPI`:
2020-10-04 12:37:55 +00:00
* `UpdateReceiver` was replaced to the package `com.github.insanusmokrassar.TelegramBotAPI.updateshandlers`
* All functions inside `com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.UpdatesPolling` are deprecated
and will be removed in some soon versions. Their replacement are able inside `TelegramBotAPI-extensions-api`
2020-03-17 11:16:14 +00:00
* `UpdatesFilter` is interface for now
* Previous `UpdatesFilter` class was renamed to `SimpleUpdatesFilter` and for backward compatibility was added
builder function `UpdatesFilter`, which will be removed in near releases
* `FlowsUpdatesFilter` now implements `UpdatesFilter`
* `BaseSentMessageUpdate` and `BaseEditMessageUpdate` interfaces was added
* `EditChannelPostUpdate` now is implementing `BaseEditMessageUpdate` interface
* `EditMessageUpdate` now is implementing `BaseEditMessageUpdate` interface
* `ChannelPostUpdate` now is implementing `BaseSentMessageUpdate` interface
* `MessageUpdate` now is implementing `BaseSentMessageUpdate` interface
2020-03-17 14:24:31 +00:00
* `UpdatesPoller` and all its usages, childs and childs usages now are deprecated
* `GetUpdates#timeout` type now is `Seconds` (in fact it is `Int` as previously)
2020-03-17 15:24:04 +00:00
* `KtorRequestsExecutor` now is using a copy of incoming `HttpClient` object and install `HttpTimeout` feature
* `AbstractRequestCallFactory` now setting up a custom delay in case if request is `GetUpdates`
* `TelegramBotAPI-extensions-api`:
2020-10-04 12:37:55 +00:00
* All functions from `com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.UpdatesPolling` now available
2020-10-04 12:39:03 +00:00
in package `com.github.insanusmokrassar.TelegramBotAPI.extensions.api.updates.UpdatesPolling`
2020-03-17 11:20:42 +00:00
* Now new method of getting updates available: `startGettingUpdates` with `UpdatesFilter` as incoming first
parameter
2020-03-17 14:24:31 +00:00
* `startGettingUpdates` with `receiver` and `allowedUpdates` parameters now will handle updates by itself
2020-10-08 20:11:39 +00:00
## 0.24.0
2020-01-23 10:00:46 +00:00
2020-10-08 20:11:39 +00:00
* `TelegramBotAPI`:
* All suspend functions for `RequestsExecutor` was removed (due to replacement into
[TelegramBotAPI extensions project](TelegramBotAPI-extensions-api/README.md))
* `ForwardFromChannelInfo#channelChat` now is `ChannelChat` instead of `Chat`
* `TelegramBotAPI-extensions-api`:
* Most part of sending media messages functions was removed and replaced with their `InputFile` args analogs
## 0.23.3 Project separating prepare version
__API Extensions__
* Project created
* For `SendPhoto` was added new functions for uploading of `MultipartFile`
* `deleteWebhook` extension for `RequestsExecutor` was added
__Telegram Bot API__
* All `RequestsExecutor` extensions related to Telegram Bots API was replaced into `API Extensions` project
## 0.23.2
* Fixes in `InputMedia` - `media` field was not included to serialization
## 0.23.1
* Versions updates:
* Klock `1.8.6` -> `1.8.7`
* Ktor `1.3.0` -> `1.3.1`
* Now it is possible to get updates by polling with custom executor engine
* `CommonMultipartFileRequest` now is internal
* Added `LiveLocation` class for more useful tracking live locations
* `InvoiceOfPayment` is renamed to `InvoiceContent` and now is `MessageContent` instead of `PaymentInfo`
* `SendInvoice` now return `ContentMessage<InvoiceContent>`
* `paymentInfo` inside of `CommonMessageImpl` now can be set only to `SuccessfulPaymentInfo`
* Added `RecordVideoNoteAction` and `UploadVideoNoteAction` for `record_video_note` and `upload_video_note` actions
* For most part of messages was added `RequestsExecutor` extensions for more useful way of usage
* `toInputFile` extensions now will return more exact types
* Now it is possible to send broadcast channels size for `FlowsUpdatesFilter`
## 0.23.0 TelegramBotAPI 4.6
* `Poll` now is sealed class
* `RegularPoll` type was added to represent polls with type `regular`
* `QuizPoll` type was added to represent polls with type `quiz`
* `UnknownPollType` type was added to represent polls which are unknown in current version
* `AnonymousPollOption` was renamed to `SimplePollOption`
2020-01-23 11:01:13 +00:00
* `SendPoll` was rewritten as sealed class
* `SendRegularPoll` was created and represent `sendPoll` method with type `regular`
* `SendQuizPoll` was created and represent `sendPoll` method with type `quiz`
* `Poll#createRequest` extension was added
2020-01-23 11:29:09 +00:00
* `PollAnswerUpdate` type of update was added
* `PollAnswer` type was added
* `UpdatesFilter` now support work with `PollAnswerUpdate`
* `language` field in PreTextSource now correctly passed from telegram MessageEntities
2020-01-23 12:06:22 +00:00
* `KeyboardButton` now is sealed class
* Fixed problem of incorrect representation of this class (any type of request can be created separately)
* Added new types of `KeyboardButton`:
* `UnknownKeyboardButton`
* `SimpleKeyboardButton`
* `RequestContactKeyboardButton`
* `RequestLocationKeyboardButton`
* `RequestPollKeyboardButton`
* Added new type `KeyboardButtonPollType`:
* `UnknownKeyboardButtonPollType`
* `RegularKeyboardButtonPollType`
* `QuizKeyboardButtonPollType`
* `User` now is sealed class
* `CommonUser` was added as representation of default `User`
2020-01-23 16:32:45 +00:00
* `Bot` was added as representation of bot user (it is sealed class)
* `ExtendedBot` with additional info
* `CommonBot` with simple info
* `GetMe` now return `ExtendedBot` object
2020-01-23 13:14:33 +00:00
* Now extension `javaLocale` is extension for `CommonUser`
2020-01-23 10:36:25 +00:00
2020-10-08 20:11:39 +00:00
## 0.22.2 CashTag and independent updates handling
2020-02-01 08:14:45 +00:00
2020-10-08 20:11:39 +00:00
* `cashtag` entity type was added
* Several `Unknown*` realizations was added:
* `UnknownUpdateType`
* `UnknownMessageType`
* `UnknownChatType`
* `UnknownCallbackQueryType`
* `UpdatesFilter` now have one additional income callback: `unknownUpdateTypeCallback`
* `createSimpleUpdateFilter` can receive one more callback: `unknownCallback` (for `unknownUpdateTypeCallback`)
2020-02-15 09:33:04 +00:00
2020-10-08 20:11:39 +00:00
## 0.22.1 MediaContent#asInputMedia
2020-02-15 09:33:04 +00:00
2020-10-08 20:11:39 +00:00
* All `MediaContent` instances now can create their `InputMedia` analog
* New annotation `PreviewFeature` was added to mark new thing as preview for the time
while they can work incorrectly
* Added links utils:
* `makeLinkToMessage` have two signatures - for direct creating using username and for abstract creating using
chat id
2020-02-15 09:33:04 +00:00
2020-01-15 07:12:35 +00:00
## 0.22.0
2020-01-08 06:11:57 +00:00
2020-01-15 06:28:06 +00:00
* **`KtorCallFactory` must return `HttpStatement` instead of `HttpClientCall`**
2020-01-15 05:48:44 +00:00
* `SendMessage` was renamed to `SendTextMessage` and previous `SendMessage` is deprecated
* All `AbleToBe*` interfaces was renamed to `Possibly*`
* `AbleToBeEditedMessage` -> `PossiblyEditedMessage`
* `AbleToBeForwardedMessage` -> `PossiblyForwardedMessage`
* `AbleToBeMarkedUp` -> `PossiblyMarkedUp`
* `AbleToBeEditedMessage` -> `PossiblyEditedMessage`
* `ForwardedMessage` type was renamed to `ForwardInfo`
* `AnonymousForwardedMessage` -> `AnonymousForwardInfo`
* `UserForwardedMessage` -> `UserForwardInfo`
* `ForwardedFromChannelMessage` -> `ForwardFromChannelInfo`
* `PossiblyForwardedMessage#forwarded` field now renamed to `forwardInfo`
2020-01-15 07:03:42 +00:00
* All serializers in library now are `internal`. **If you have used some of them or I have marked as internal by a
mistake - don't hesitate to say this.**
* `EditChatMessage` now have generic type and extends `SimpleRequest<ContentMessage<GenericType>>`
* `ResendableContent` now extends `Request<out Message>` instead of `Request<Message>`
2020-01-15 05:48:44 +00:00
* Most part of requests have changed return type. They are listed below:
<details>
* `ForwardMessage`
* `GetChatAdministrators`
* `EditChatMessageLiveLocation`
* `StopChatMessageLiveLocation`
* `EditChatMessageText`
* `EditChatMessageCaption`
* `EditChatMessageMedia`
* `EditChatMessageReplyMarkup`
* `SendAnimation`
* `SendAudio`
* `SendContact`
* `SendLocation`
* `SendTextMessage`
* `SendPoll`
* `SendVenue`
* `SendGame`
* `SendDocument`
* `SendMediaGroup`
* `SendPhoto`
* `SendVideo`
* `SendVideoNote`
* `SendVoice`
* `SendSticker`
</details>
* Changed type of `createResend`
<details>
* `GameContent`
* `LocationContent`
* `PollContent`
* `TextContent`
* `VenueContent`
* `AnimationContent`
* `AudioContent`
* `DocumentContent`
* `ContactContent`
* `PhotoContent`
* `VideoContent`
* `VideoNoteContent`
* `VoiceContent`
* `StickerContent`
</details>
2020-01-15 06:28:06 +00:00
* Version updates:
* Ktor `1.2.6` -> `1.3.0`
2020-01-15 05:48:44 +00:00
2020-01-15 06:31:17 +00:00
## 0.21.0 TelegramBotAPI 4.5
* _**All `MessageEntity`'es now are replaced with `TextPart`**_
* Added support of strikethrough and underline
* Added `UnderlineTextSource`
* Added `StrikethroughTextSource`
* Added support in `RawMessageEntity`
* Added support of `MarkdownV2`
* Now will not be thrown exception when there is income unknown type of `RawMessageEntity`. Instead of this will be
created `RegularTextSource` with the same text
* Fixed problem that usually string formatting did not trigger escaping of control characters
* Actualized work with `pre` type of text - now it is possible to use `language` for formatting of text
* Removed constructor of `TextMentionTextSource`, which was deprecated previously
* All `TelegramMediaFile` instances now have field `fileUniqueId`, which represents `file_unique_id` field from API
* Now `ChatPhoto` have two additional fields: `smallFileUniqueId` and `bigFileUniqueId`
* Now any administrator object instance have `customTitle` nullable field
* Added the new request `SetChatAdministratorCustomTitle` to manage the custom titles of administrators promoted by the
bot.
* Added the field `slowModeDelay` to the `ExtendedSupergroupChat` objects.
* `CaptionedInput` now have extension `fullEntitiesList` which will return list of `TextPart` with `RegularSource`'s
* `TextPart` added - it will be used as part of some text and can be not related to telegram bot
* `MultilevelTextSource` was added - it is type of `TextSource`, which can have subsources as parts of this text
* In all `TextSource`s all fields now are lazy for avoiding of potential risk for performance issues
* Updates in versions:
* Coroutines `1.3.2` -> `1.3.3`
* Klock `1.8.0` -> `1.8.6`
* UUID `0.0.6` -> `0.0.7`
2020-10-08 20:11:39 +00:00
## 0.20.4
2019-12-03 05:07:25 +00:00
2020-10-08 20:11:39 +00:00
* Now `setWebhook` supports setting up of path for listening
* Now `setWebhook` supports custom listen address even if certificate was not provided
## 0.20.3
* Now `LeftChatMamber` is a `CommonEvent`
2019-12-03 05:07:25 +00:00
2020-10-08 20:11:39 +00:00
## 0.20.2
* New exception type `MessageIsNotModifierException` was added
* New exception type `MessageToEditNotFoundException` was added
* Now exceptions in requests will be caught correctly
## 0.20.1
2019-12-11 03:45:31 +00:00
2019-12-11 04:18:12 +00:00
* `User` now implement `PrivateChat`
* `TextMentionMessageEntity` now accept `PrivateChat` instead of `User` in main constructor
* `TextMentionMessageEntity` now contains not user, but contains `PrivateChat`
2019-12-11 11:05:48 +00:00
* Fixed: `TextMentionMessageEntity#asHtmlSource` previously worked incorrect
2019-12-11 07:49:17 +00:00
* Abstraction `TextSource`
* `MessageEntity` now extends `TextSource`
* `createFormattedText` method now accept `List<TextSource>`
* `createHtmlText` method now accept `List<TextSource>`
* `createMarkdownText` method now accept `List<TextSource>`
* A lot of `TextSource` implementors was added. More info [here](src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/MessageEntity/textsources/)
* All `MessageEntity` implementations now are using new `TextSource` analogues as delegates
2019-12-11 04:18:12 +00:00
2020-10-08 20:11:39 +00:00
## 0.20.0 MPP Migration
2020-01-01 08:06:03 +00:00
2020-10-08 20:11:39 +00:00
* Time library change: `joda-time` -> `com.soywiz.korlibs.klock:klock`
* `Currencied` now using as `currency` value with type `String`
* For `Java` there is `Currencied#javaCurrency` extension function, which will give an old currency work way
* `User` now have no field `userLocale`
* For `Java` there is `User#javaLocale` extension function, which will give an old locale work way
2019-12-02 07:52:22 +00:00
## 0.19.0 ImplicitReflection removing
2019-12-02 08:35:37 +00:00
* Total rework of serialization for requests. Now all `SimpleRequest` children have:
* `requestSerializer` - field, which must provide serializer of current type
* `resultDeserializer` - field, which must provide opportunity to deserializer result. Previously it was a function
2019-12-02 08:39:19 +00:00
* Removed deprecations:
2020-10-04 12:37:55 +00:00
* `com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.WebhookPrivateKeyConfig`
* `com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.UpdatesFilter`
* `com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.createSimpleUpdateFilter`
* `com.github.insanusmokrassar.TelegramBotAPI.utils.createMarkdownText`
* `com.github.insanusmokrassar.TelegramBotAPI.utils.toMarkdownCaption`
* `com.github.insanusmokrassar.TelegramBotAPI.utils.toMarkdownText`
* `com.github.insanusmokrassar.TelegramBotAPI.updateshandlers.KtorUpdatesPoller`
* `com.github.insanusmokrassar.TelegramBotAPI.types.message.content.abstracts.CaptionedMediaContent`
* `com.github.insanusmokrassar.TelegramBotAPI.types.message.CommonForwardedMessage`
* `com.github.insanusmokrassar.TelegramBotAPI.types.InputMedia.CaptionedInputMedia`
* `com.github.insanusmokrassar.TelegramBotAPI.types.games.Game#text`
* `com.github.insanusmokrassar.TelegramBotAPI.types.games.Game#textEntities`
* `com.github.insanusmokrassar.TelegramBotAPI.types.files.PathedFileKt.makeFileUrl`
* `com.github.insanusmokrassar.TelegramBotAPI.types.files.PathedFileKt.downloadingFilesBaseUrl`
* `com.github.insanusmokrassar.TelegramBotAPI.requests.send.media.base.Data`
* `com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.types.ByInlineMessageId`
* `com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.types.ByMessageId`
* `com.github.insanusmokrassar.TelegramBotAPI.bot.RequestException`
* `com.github.insanusmokrassar.TelegramBotAPI.bot.exceptions.ReplyMessageNotFound`
* `com.github.insanusmokrassar.TelegramBotAPI.bot.BaseRequestsExecutor#baseUrl`
* `com.github.insanusmokrassar.TelegramBotAPI.bot.BaseRequestsExecutor#constructor(token, hostUrl)`
* `com.github.insanusmokrassar.TelegramBotAPI.bot.Ktor.KtorRequestsExecutor#constructor(token, client, hostUrl, callsFactories, excludeDefaultFactories, requestsLimiter, jsonFormatter)`
* `com.github.insanusmokrassar.TelegramBotAPI.bot.Ktor.KtorRequestsExecutor#constructor(token, engine, hostUrl)`
2019-12-02 08:35:37 +00:00
2020-10-08 20:11:39 +00:00
## 0.18.1 Libraries update
* Update libraries:
* `kotlin`: 1.3.41 -> 1.3.61
* `kotlin coroutines`: 1.2.2 -> 1.3.2
* `kotlin serialization`: 0.11.1 -> 0.14.0
* `joda time`: 2.10.3 -> 2.10.5
* `ktor`: 1.2.3 -> 1.2.6
* `BotAction` now will be deserialized in a little bit other way
* `BotActionSerializer` now is internal
* Most part of serializers now are objects (instead of classes as was previously)
2019-08-18 06:31:33 +00:00
## 0.18.0 Raws cleaning
2019-08-17 05:32:39 +00:00
2019-08-17 16:55:41 +00:00
* Made internal and not available outside of library:
* `RawMessage`
* `RawUpdate`
* `RawChatMember`
* `RawMessageEntity`
* `RawInlineQuery`
* `RawCallbackQuery`
* `RawChosenInlineResult`
* All `RawMessage` usages was replaced with `Message` interface (with some of other raw classes was made the same things)
* `TelegramBotAPIMessageDeserializationStrategy` was created. It was used for deserialization of Telegram Bot API
incoming messages
* `TelegramBotAPIMessageDeserializeOnlySerializer` was created. It **MUST NOT** be used to serialize messages
2019-08-17 05:53:19 +00:00
* Update of description
2019-08-17 16:48:18 +00:00
* Make `Game` object a little bit more standartizated
2019-08-18 06:31:33 +00:00
* `Game` now is not serializable and have no additional trash, related to serialization
2019-08-18 06:58:17 +00:00
* `TelegramFile` was removed
2019-08-18 06:31:33 +00:00
## 0.17.0 July 29, 2019 API Update
2019-07-22 23:24:14 +00:00
2019-08-12 09:15:22 +00:00
Libraries updates:
2019-07-22 23:43:32 +00:00
* Kotlin version `1.3.31` -> `1.3.41`
* Kotlin Coroutines version `1.2.1` -> `1.2.2`
* Kotlin Serialization version `0.11.0` -> `0.11.1`
* Joda Time version `2.10.1` -> `2.10.3`
2019-08-12 12:03:38 +00:00
* ktor version `1.1.4` -> `1.2.3`
2019-07-22 23:43:32 +00:00
Changes according to [July 29, 2019 Telegram Bot API update](https://core.telegram.org/bots/api#july-29-2019):
* `Sticker` and `StickerSet` now have field `isAnimated`
2019-08-12 07:46:16 +00:00
* `ChatPermissions` object was added, `GroupChat` interface got `permissions` field, request `SetChatPermissions` was added
2019-08-12 07:48:38 +00:00
* `GroupChat` object now have no field `allMembersAreAdmins`
* `SpecialRightsChatMember` was added for administrators and restricted members rights union, chat members abstractions
was replaced into `abstracts` package and available permissions was updated
* `RestrictChatMember` request now accept `permissions` object instead of separated permissions
2019-08-12 08:15:06 +00:00
* All `GroupChat` instances have description
2019-08-12 09:15:22 +00:00
Other important changes:
* Totally reworked chats hierarchy. `Extended` abstractions was added for cases when called `GetChat` request
* `RawChat` boilerplate was removed and replaced by serializers
* `BotCommandMessageEntity#command` will not contain `/`/`!` parts and also will cut outside of command begin token (`/`
or `!`) and username token (`@`) or end of command (any space character)
2019-08-12 09:15:22 +00:00
* `RequestsExecutor` now is `Closeable`
* `TelegramAPIUrlsKeeper` was added to provide more comfortable work with file urls and other things
like this
2020-10-08 20:11:39 +00:00
## 0.16.1
* Now old uncommon `CaptionedMediaContent` and `CaptionedInputMedia` are replaced by almost the same
interfaces `CaptionedInput` and `CaptionedOutput`. They are both implementing `Captioned` interface
* `AnimationContent` now is `CaptionedInput`
2019-06-01 09:12:57 +00:00
## 0.16.0 Bot API 4.3
* `LoginURL` and `LoginURLInlineKeyboardButton` has been added
2019-06-01 09:28:37 +00:00
* `replyMarkup` field was added to the `CommonMessage` objects via `AbleToBeMarkedUp` interface
2019-06-01 09:31:48 +00:00
* `SwitchInlineQueryCurrentChatInlineKeyboardButton#switchInlineQueryCurrentChat` field fixed
2019-06-02 14:02:12 +00:00
* `InlineKeyboardButton` now is sealed class and all its possible realisations are inside of its class file
2019-06-02 14:57:52 +00:00
* `String#asUsername` method renamed to `String#toUsername`
2019-06-02 14:59:24 +00:00
* Several `toChatId` extensions added
2019-05-25 06:14:44 +00:00
## 0.15.0
* Old `UpdatesPoller` removed (was deprecated)
* `UpdatesPoller` renamed to `KtorUpdatesPoller`
* Now `KtorUpdatesPoller` do not use additional delay between requests and await answer from Telegram all timeout time
* Added abstraction `UpdatesPoller`
* Changed signature of the most count of `startGettingOfUpdates`:
* They are not `suspend` for now
* They are return `UpdatesPoller`
* They are using `timeoutMillis` instead of `requestsDelayMillis`
2019-05-28 11:14:32 +00:00
* Added `CIO` ktor client engine as lightweight default engine for long-polling
2020-10-08 20:11:39 +00:00
## 0.14.2 MediaGroups edit hotfixes
* `convertWithMediaGroupUpdates` extension added
* All media group converting extensions are internal for now
* Fixes according to updates in converting of updates to media group updates
## 0.14.1
* Replace `UpdatesFilter` and `UpdatesPoller` into another package
* Replace `WebhookPrivateKeyConfig`
* Added `FlowsUpdatesFilter`
* `UpdatesFilter` now have additional callback for polls
* `StopPoll#replyMarkup` now is optional
2019-04-20 04:17:03 +00:00
## 0.14.0
* Now library have no default engine for both webhooks and requests executor. It is required for clients to set
some default library
* All proxy help methods was removed . They are will be replaced in separated project
* `Ktor` version `1.1.3` -> `1.1.4`
* Requests results now always decoding as `UTF-8`
2019-04-26 03:12:01 +00:00
* `AbstractRequestCallFactory` was added with cache of methods urls to avoid memory leaks
* Small refactoring of work with response in `KtorRequestsExecutor`
2019-04-26 06:09:45 +00:00
* Kotlin version `1.3.30` -> `1.3.31`
2019-04-28 00:57:51 +00:00
* Kotlin coroutines `1.2.0` -> `1.2.1`
2019-04-30 07:56:28 +00:00
* `CommonForwardedMessage` was renamed to `UserForwardedMessage`
* All forwarded messages are now just childs of `ForwardedMessage`:
* `AnonymousForwardedMessage` - for messages without forwarded info
* `UserForwardedMessage` - for messages from users and groups (contains not message id)
* `ForwardedFromChannelMessage` - for messages from channels
* Changed logic of forwarded messages preparing
2019-04-14 10:51:13 +00:00
## 0.13.0 Telegram Polls
2019-04-16 07:51:53 +00:00
* Type `PollOption` and `AnonymousPollOption` added
* Type `Poll` added
2019-04-16 07:56:04 +00:00
* Type `PollUpdate` added and implemented in `RawUpdate`. Now `PollUpdate` can be retrieved from `RawUpdate`
2019-04-16 08:16:13 +00:00
* Type `PollContent` added - now it can be a value of `ContentMessage#content`
* Request `SendPoll` added and `PollContent#createResend` now use it
* `ByInlineMessageId` is deprecated (use `InlineMessageAction` instead)
* `ByMessageId` is deprecated (use `MessageAction` instead)
* Most part of requests which are working with identifiers of messages now implement `MessageAction` directly or
by their parents
* `StopPoll` implemented
* All current `Chat` abstractions are deprecated and rewritten as typealiases. Use `Chat` abstractions from
2020-10-04 12:37:55 +00:00
`com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts` package
* Common Groups now may have pinned message
2019-04-16 09:10:20 +00:00
* `is_member` field added into `RestrictedChatMember`
2019-04-16 09:26:02 +00:00
* **BREAK CHANGES** Now `ForwardedMessages` can be `AnonymousForwardedMessage` and `PublicForwardedMessage`. Old
implementations now extend `PublicForwardedMessage`
2019-04-16 07:45:29 +00:00
2020-10-08 20:11:39 +00:00
## 0.12.7 Hotfix version
2019-02-26 01:15:52 +00:00
2020-10-08 20:11:39 +00:00
* Now temporary all requests of input media will contains `file` field
2019-03-14 07:44:19 +00:00
2020-10-08 20:11:39 +00:00
## 0.12.6 Libraries updates
2019-03-14 23:24:10 +00:00
2020-10-08 20:11:39 +00:00
* `kotlin` version `1.3.21` -> `1.3.30`
* `kotlin coroutines` version `1.1.1` -> `1.2.0`
* `kotlin serialization` version `0.10.0` -> `0.11.0`
* `ktor` version `1.1.2` -> `1.1.3`
* Added `DeleteWebhook` request
* All default `startGettingOfUpdates` (in fact - method `start` of `UpdatesPoller`) are suspend and
will try to delete webhook
2019-03-15 00:16:01 +00:00
2020-10-08 20:11:39 +00:00
## 0.12.5 `MediaContent` improvements
2019-03-20 00:52:36 +00:00
2020-10-08 20:11:39 +00:00
* Now `MediaGroupContent` is `MediaContent`
* All `MedaContent` now have no generics and have basic `TelegramMediaFile` media field
2019-03-20 00:53:37 +00:00
2020-10-08 20:11:39 +00:00
## 0.12.4
2019-03-23 06:26:22 +00:00
2019-03-23 06:31:13 +00:00
* Optimized preparing of media group in `UpdatesPoller`
2019-03-27 01:13:07 +00:00
* Add `CommonLimiter`
2019-03-27 01:35:37 +00:00
* Add `MessageEntity#asHtmlSource` and `String#toHtml`
* Add tools for work with html captions and texts
* `MessageContent` which using captions or text now have default parse mode `HTMLParseMode` due to issue with escaping
of `]` in links titles
2019-03-31 02:20:14 +00:00
* Added `Markdown` and `HTML` type aliases which actually means `MarkdownParseMode` and `HTMLParseMode`
2019-03-31 03:11:32 +00:00
* `ChatId` now have extension `link` which will automatically create link like `tg://user?id=<chatId>`
* Created a few of methods for all supported formats of text like bold, italic, links and others
* Rewritten `MessageEntities` to use new formatting options
2019-03-23 06:31:13 +00:00
2020-10-08 20:11:39 +00:00
## 0.12.3 Cleaning
2019-04-04 03:04:22 +00:00
2020-10-08 20:11:39 +00:00
* Refactor, optimizing and cleaning of code
* Removed deprecated method `T#toJsonWithoutNulls()`
* Renamed instances of `MediaGroupMessage`s and refactored their interfaces. `ChannelMediaGroupMessage`
will not contain `user` field (but `CommonMediaGroupMessage` will have)
* Now `MediaCollectionContent` is `MediaContent` (classes of this interface must choose best
media for present out)
* `PhotoContent` now choose biggest photo size from its collection as `media`
* Fix in order of media group messages which was received by webhooks
2019-04-04 11:32:47 +00:00
2020-10-08 20:11:39 +00:00
## 0.12.2
2019-04-13 01:23:55 +00:00
2020-10-08 20:11:39 +00:00
* New in `MediaGroupUpdate`:
* It is subtype of `Update` and can be use as regular update with list of messages
* Data now is list with `MediaGroupMessage`
* Added field `origins` which represent origin updates for `MediaGroupMessage`
* `updateId` now represent LAST id of origins updates
* `UpdatesFilter` and other objects now work with `UpdateReceiver<Update>` as common supertype
for receivers.
2019-04-13 01:26:41 +00:00
2020-10-08 20:11:39 +00:00
## 0.12.1 Hotfix for media groups
2019-04-15 09:06:33 +00:00
2020-10-08 20:11:39 +00:00
* Added additional media group types (like `MessageMediaGroupUpdate`)
* Fixed handling of media group updates in `UpdatesFilter`
## 0.12.0 Webhooks
* Added `DataRequest` interface which replace `Data` interface
* `MultipartRequestImpl` now use `DataRequest`
* All requests which implements `Data` now implement `DataRequest`
* Added class `SetWebhook` and its factory
* Added class `UpdatesFilter` which can help to filter updates by categories
* Added function `accumulateByKey` which work as debounce for keys and send list of received values
* Added webhooks functions and workaround for `Reverse Proxy` mode
* Added new type of updates `MediaGroupUpdate`, which can be received only from filters
* `UpdatesFilter` now use new type of updates for mediagroups
* Add `GetWebhookInfo` request and `WebhookInfo` type
* Replace updates types into separated place in types
* Now default `RequestException` will contain plain answer from telegram
* Added `UnauthorizedException`
* `RequestException` now is sealed
* Rename `ReplyMessageNotFound` to `ReplyMessageNotFoundException`
* Added `List<BaseMessageUpdate>#mediaGroupId` extension
* Added utility `T#asReference(): WeakReference(T)` extension
* Added `UpdatesPoller` class which can be instantiated for manage updates polling
* Separated execute extensions (now they are in file `Executes`) and poller creating extensions
* `BaseMessageUpdate#toMediaGroupUpdate()` will also check condition when update-receiver already is `MediaGroupUpdate`
2019-04-15 11:31:54 +00:00
2019-02-21 04:07:05 +00:00
## 0.11.0
2019-02-21 04:10:14 +00:00
* Kotlin `1.3.11` -> `1.3.21`
* Kotlin coroutines `1.1.0` -> `1.1.1`
* Kotlin serialization `0.9.1` -> `0.10.0`
* Ktor `1.1.1` -> `1.1.2`
2020-10-08 20:11:39 +00:00
## 0.10.3
2019-01-01 10:15:01 +00:00
2020-10-08 20:11:39 +00:00
* Hotfix for username data class
## 0.10.2
2019-02-07 06:29:38 +00:00
2020-10-08 20:11:39 +00:00
* Fixes in `Username`
* Now you can create username object using string which is not starting with `@`
* Now `Username` correctly comparing with strings, which are not starting with `@`
* Now most part of usernames in library have type `Username`
* Fix `replyMarkup` in `InlineQueryResultArticle`
## 0.10.1
2019-02-14 08:39:55 +00:00
2019-02-14 08:45:25 +00:00
* Change algorithm of `executeUnsafe`: now it use loop instead of recursive calling
* Add additional `startGettingUpdates` with better management of received updates for media groups
2019-02-17 06:29:17 +00:00
* Now `MediaGroupMessage` is `CommonMessage` with `MediaGroupContent` content
2019-02-17 08:39:04 +00:00
* Added extensions `replyTo`, `forwarded` and `chat` for `List<BaseMessageUpdated>` for comfortable
work with media groups lists
* Fix `parseMode` of `InputTextMessageContent`
2019-02-14 08:45:25 +00:00
2020-10-08 20:11:39 +00:00
## 0.10.0
2019-02-17 13:10:42 +00:00
2020-10-08 20:11:39 +00:00
* Most part of abstractions was replaced from `requests` and `types` on more high level
* Added abstraction `CommonVenueData`
* Added abstraction `CommonContactData`
* Added `InputMessageContent`
* Update some types and requests according to abstractions replacing
* Add all `InlineQueryResult`, `InputMessageContent` and other inline mode types
* Fixes in edition of inline messages and their result types
* Replace basic exception and add `ReplyMessageNotFound` exception
2019-02-17 13:12:56 +00:00
2020-10-08 20:11:39 +00:00
## 0.9.3
2019-02-18 06:35:58 +00:00
2020-10-08 20:11:39 +00:00
* `KtorRequestsExecutor` now can use custom `JSON` string formatter (by default - non strict)
* `ResponseParameters` renamed to `Response`
* Add `RequestError` sealed class and described in documentation known errors
* Add `ResponseParametersRaw` which can create error based on input parameters
* Add `parameters` field in `Response` and remove useless fields from `Response`
* Add `leftToRetry` parameter in `RetryAfterError`
* Add handling of `RetryAfterError` in `KtorRequestsExecutor`
2019-02-18 06:35:58 +00:00
2020-10-08 20:11:39 +00:00
## 0.9.2
2019-01-10 14:09:51 +00:00
2020-10-08 20:11:39 +00:00
* `RequestsExecutor#executeAsync(Request, CoroutineScope)` now will return `Deferred` for cases when you need result
* `RequestsExecutor#executeUnsafe` will automatically retry request if it was unsuccessful and retries > 0
2019-01-10 14:09:51 +00:00
2020-10-08 20:11:39 +00:00
## 0.9.1
2019-01-29 00:14:52 +00:00
2019-01-29 00:18:07 +00:00
* Updated built-in lengths restrictions
* Apply restrictions of text limit for sending messages
* Add `RegularTextMessageEntity` which is useful for representing regular text message entity
* Add `convertToFullMessageEntityList` which create list of entities with `RegularTextMessageEntity` on places where
must be regular text
2019-01-29 02:13:59 +00:00
* Change signature of `createMarkdownText`: now it will return list of strings
* Deprecate old signatures of `createMarkdownText`, `toMarkdownCaption`, `toMarkdownText`
2019-01-29 02:22:09 +00:00
* Add `ResendableContent#createResends` which create adapted list of resends for content
* Add `TextContent` own `createResends` realisation
2019-01-29 00:18:07 +00:00
2020-10-08 20:11:39 +00:00
## 0.9.0
2019-02-05 04:27:33 +00:00
2020-10-08 20:11:39 +00:00
* Old extension `OkHttpClient.Builder#useWith` now deprecated and must be replaced by the same in
`com.github.insanusmokrassar.TelegramBotAPI.bot.Ktor` package
* Replace `ProxySettings` data class in `settings` package, deprecate old link
* `BaseRequestsExecutor` now have no it's own scope
* Add `RequestLimiter` and base realisations
* Now `KtorRequestsExecutor` can receive as one of parameters `RequestLimiter` (by default - `EmptyLimiter`)
2020-10-08 20:11:39 +00:00
## 0.8.5
2019-01-26 05:28:54 +00:00
* Add extension `String#toMarkdown`
* Fix of inserting of text when create Markdown-adapted text from text and text entities
* Fix default realisation of MessageEntity#asMarkdownSource
2019-01-17 00:21:01 +00:00
2020-10-08 20:11:39 +00:00
## 0.8.4
* Added `createMarkdownText` and extensions for `CaptionedMediaContent` and `TextContent`
2019-01-17 02:19:33 +00:00
* Added `ResendableContent` and realize in different contents
* Animation
* Audio
* Document
* Photo
* Sticker
* Video
* VideoNote
* Voice
* `MessageContent` now is `ResendableContent`
* Now all media sending factories which contains `thumb` have default `null` value
* `ChatIdentifier` classes now are `data` classes
* Now `MediaGroupContent` interface contains `toMediaGroupMemberInputMedia` method for easily creating mirror input media
* Change signature of `Update`
* Now `Update` is untyped and data is `Any`
* Media groups now are separated type of updates and you can subscribe on that receiving directly
* Now `AdministratorChatMember` is interface and `CreatorChatMember` implement it
2019-01-23 04:15:57 +00:00
2020-10-08 20:11:39 +00:00
## 0.8.3
2019-01-23 04:15:57 +00:00
2019-01-26 05:28:54 +00:00
* Now `ForwardedMessage` contains nullable `from`
2019-01-24 00:20:13 +00:00
2020-10-08 20:11:39 +00:00
## 0.8.2
2019-01-26 05:28:54 +00:00
* Add `FromUserMessage` which must be implemented in all messages realisations which have `user` field
* Add `CommonMediaGroupMessage` which in fact extension of `MediaGroupMessage` with implementation of `FromUserMessage`
* `CommonMessageImpl` now implementing `FromUserMessage`
2020-10-08 20:11:39 +00:00
## 0.8.1
2019-01-26 05:28:54 +00:00
* Update `MediaGroupMessage` interface
* Add implementation of `MediaGroupMessage`
* Add generating of `MediaGroupMessage` in `RawMessage`