2019-01-01 10:15:01 +00:00
|
|
|
# TelegramBotAPI changelog
|
|
|
|
|
|
|
|
|
2019-01-26 05:28:54 +00:00
|
|
|
## 0.9.0
|
2019-01-10 14:09:51 +00:00
|
|
|
|
2019-01-26 05:28:54 +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`)
|
2019-01-10 14:09:51 +00:00
|
|
|
|
2019-01-29 00:14:52 +00:00
|
|
|
### 0.9.1
|
|
|
|
|
2019-01-29 00:18:07 +00:00
|
|
|
* Updated built-in lengths restrictions
|
2019-01-29 00:18:52 +00:00
|
|
|
* Apply restrictions of text limit for sending messages
|
2019-01-29 01:47:01 +00:00
|
|
|
* 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
|
|
|
|
2019-01-31 01:52:43 +00:00
|
|
|
### 0.9.2
|
|
|
|
|
2019-01-31 01:53:58 +00:00
|
|
|
* `RequestsExecutor#executeAsync(Request, CoroutineScope)` now will return `Deferred` for cases when you need result
|
2019-01-31 01:57:49 +00:00
|
|
|
* `RequestsExecutor#executeUnsafe` will automatically retry request if it was unsuccessful and retries > 0
|
2019-01-31 01:53:58 +00:00
|
|
|
|
2019-02-05 04:27:33 +00:00
|
|
|
### 0.9.3
|
|
|
|
|
2019-02-05 04:30:09 +00:00
|
|
|
* `KtorRequestsExecutor` now can use custom `JSON` string formatter (by default - non strict)
|
2019-02-05 04:40:29 +00:00
|
|
|
* `ResponseParameters` renamed to `Response`
|
2019-02-05 04:58:38 +00:00
|
|
|
* 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-05 04:30:09 +00:00
|
|
|
|
2019-01-26 05:28:54 +00:00
|
|
|
### 0.8.5
|
2019-01-11 03:54:51 +00:00
|
|
|
|
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
|
|
|
|
2019-01-23 04:15:57 +00:00
|
|
|
### 0.8.4
|
2019-01-17 01:42:23 +00:00
|
|
|
|
|
|
|
* 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
|
2019-01-17 02:40:37 +00:00
|
|
|
* `MessageContent` now is `ResendableContent`
|
2019-01-20 05:13:42 +00:00
|
|
|
* Now all media sending factories which contains `thumb` have default `null` value
|
2019-01-21 00:23:27 +00:00
|
|
|
* `ChatIdentifier` classes now are `data` classes
|
2019-01-21 02:22:51 +00:00
|
|
|
* Now `MediaGroupContent` interface contains `toMediaGroupMemberInputMedia` method for easily creating mirror input media
|
2019-01-21 06:13:31 +00:00
|
|
|
* 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
|
2019-01-21 08:04:55 +00:00
|
|
|
* Now `AdministratorChatMember` is interface and `CreatorChatMember` implement it
|
2019-01-23 04:15:57 +00:00
|
|
|
|
2019-01-26 05:28:54 +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
|
|
|
|
2019-01-26 05:28:54 +00:00
|
|
|
### 0.8.2
|
2019-01-24 00:37:39 +00:00
|
|
|
|
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`
|
|
|
|
|
|
|
|
### 0.8.1
|
|
|
|
|
|
|
|
* Update `MediaGroupMessage` interface
|
|
|
|
* Add implementation of `MediaGroupMessage`
|
|
|
|
* Add generating of `MediaGroupMessage` in `RawMessage`
|