filter Content Messages
inline fun <T : MessageContent> Flow<BaseSentMessageUpdate>.filterContentMessages(): Flow<ContentMessage<T>>
Content copied to clipboard
inline fun <T : MessageContent> FlowsUpdatesFilter.filterContentMessages(scopeToIncludeChannels: CoroutineScope? = null): Flow<ContentMessage<T>>
Content copied to clipboard
Parameters
scopeToIncludeChannels
This parameter is required when you want to include textMessages for channels too. In this case will be created new channel which will aggregate messages from FlowsUpdatesFilter.messageFlow and FlowsUpdatesFilter.channelPostFlow. In case it is null will be used Flows mapping