# filterBaseMessageUpdates - docs

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

# filterBaseMessageUpdates

(common) `fun <T : BaseMessageUpdate> Flow<T>.filterBaseMessageUpdates(chatId: ChatId): Flow<T>` (source)

Flow.filter incoming BaseMessageUpdates by their ChatId

(common) `fun <T : BaseMessageUpdate> Flow<T>.filterBaseMessageUpdates(chat: Chat): Flow<T>` (source)

Flow.filter incoming BaseMessageUpdates by their ChatId using Chat.id of chat