mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
fill changelog
This commit is contained in:
parent
6665b6ef03
commit
54cfea9adf
@ -71,6 +71,11 @@
|
|||||||
* `List<TextSource>#separateForMessage`
|
* `List<TextSource>#separateForMessage`
|
||||||
* `List<TextSource>#separateForCaption`
|
* `List<TextSource>#separateForCaption`
|
||||||
* `List<TextSource>#separateForText`
|
* `List<TextSource>#separateForText`
|
||||||
|
* 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
|
||||||
* `API`:
|
* `API`:
|
||||||
* Extensions `TelegramBot#pinChatMessage` now support any `Chat` and `Message`s from any `Chat`
|
* Extensions `TelegramBot#pinChatMessage` now support any `Chat` and `Message`s from any `Chat`
|
||||||
* New extensions `TelegramBot#unpinAllChatMessages`
|
* New extensions `TelegramBot#unpinAllChatMessages`
|
||||||
|
@ -29,7 +29,7 @@ data class TextPart(
|
|||||||
|
|
||||||
fun List<TextPart>.justTextSources() = map { it.source }
|
fun List<TextPart>.justTextSources() = map { it.source }
|
||||||
fun List<TextSource>.makeString() = joinToString("") { it.source }
|
fun List<TextSource>.makeString() = joinToString("") { it.source }
|
||||||
fun MultilevelTextSource.textParts(offset: Int): List<TextPart> = textSources.toTextParts(offset)
|
internal fun MultilevelTextSource.textParts(offset: Int): List<TextPart> = textSources.toTextParts(offset)
|
||||||
fun List<TextSource>.separateForMessage(limit: IntRange, numberOfParts: Int? = null): List<List<TextSource>> {
|
fun List<TextSource>.separateForMessage(limit: IntRange, numberOfParts: Int? = null): List<List<TextSource>> {
|
||||||
if (isEmpty()) {
|
if (isEmpty()) {
|
||||||
return emptyList()
|
return emptyList()
|
||||||
|
Loading…
Reference in New Issue
Block a user