# com.github.insanusmokrassar.TelegramBotAPI.extensions.utils.chat_events.kotlinx.coroutines.flow.Flow - docs

docs / com.github.insanusmokrassar.TelegramBotAPI.extensions.utils.chat_events / kotlinx.coroutines.flow.Flow

### Extensions for kotlinx.coroutines.flow.Flow

(common)

#### divideBySource

`fun <T : ChatEventMessage> Flow<ChatEventMessage>.divideBySource(contentType: KClass<T>): Flow<T>`

(common)

#### onlyChannelEvents

`fun Flow<ChatEventMessage>.onlyChannelEvents(): Flow<ChannelEventMessage>`

(common)

#### onlyGroupEvents

`fun Flow<ChatEventMessage>.onlyGroupEvents(): Flow<GroupEventMessage>`

(common)

#### onlySupergroupEvents

`fun Flow<ChatEventMessage>.onlySupergroupEvents(): Flow<SupergroupEventMessage>`