mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 03:58:44 +00:00
deprecate allSentMessagesFlow and allSentMedaGroupsFlow
This commit is contained in:
parent
a109771d20
commit
226b8dee21
@ -6,6 +6,8 @@
|
|||||||
* `Version`:
|
* `Version`:
|
||||||
* `Klock`: `2.3.1` -> `2.3.3`
|
* `Klock`: `2.3.1` -> `2.3.3`
|
||||||
* `MicroUtils`: `0.5.19` -> `0.5.21`
|
* `MicroUtils`: `0.5.19` -> `0.5.21`
|
||||||
|
* `Utils`:
|
||||||
|
* Extensions `allSentMessagesFlow` and `allSentMediaGroupsFlow` have been deprecated
|
||||||
|
|
||||||
## 0.35.5
|
## 0.35.5
|
||||||
|
|
||||||
|
@ -6,14 +6,16 @@ import dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter
|
|||||||
import kotlinx.coroutines.flow.Flow
|
import kotlinx.coroutines.flow.Flow
|
||||||
import kotlinx.coroutines.flow.merge
|
import kotlinx.coroutines.flow.merge
|
||||||
|
|
||||||
|
@Deprecated("Will be removed soon", ReplaceWith("messageFlow + channelPostFlow"))
|
||||||
val FlowsUpdatesFilter.allSentMessagesFlow: Flow<BaseSentMessageUpdate>
|
val FlowsUpdatesFilter.allSentMessagesFlow: Flow<BaseSentMessageUpdate>
|
||||||
get() = merge(
|
get() = merge(
|
||||||
messageFlow,
|
messagesFlow,
|
||||||
channelPostFlow
|
channelPostsFlow
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@Deprecated("Will be removed soon", ReplaceWith("messageMediaGroupFlow + channelPostMediaGroupFlow"))
|
||||||
val FlowsUpdatesFilter.allSentMediaGroupsFlow: Flow<SentMediaGroupUpdate>
|
val FlowsUpdatesFilter.allSentMediaGroupsFlow: Flow<SentMediaGroupUpdate>
|
||||||
get() = merge(
|
get() = merge(
|
||||||
messageMediaGroupFlow,
|
messageMediaGroupsFlow,
|
||||||
channelPostMediaGroupFlow
|
channelPostMediaGroupsFlow
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user