All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.dev.inmo.tgbotapi.extensions.utils.updates.FlowsUpdatesFactory.kt Maven / Gradle / Ivy

There is a newer version: 20.0.1
Show newest version
package dev.inmo.tgbotapi.extensions.utils.updates

import dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter

/**
 * Non-suspendable function for easy-to-use creating of [FlowsUpdatesFilter] and applying the block to it
 *
 * @see flowsUpdatesFilter
 */
inline fun flowsUpdatesFilter(
    internalChannelsSizes: Int = 100,
    block: FlowsUpdatesFilter.() -> Unit
): FlowsUpdatesFilter {
    val filter = FlowsUpdatesFilter(internalChannelsSizes)
    filter.block()
    return filter
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy