mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
update defaults for new FlowsUpdatesFilter
This commit is contained in:
parent
a9a3f55c8d
commit
ed9ed715a0
@ -76,7 +76,7 @@ fun RequestsExecutor.startGettingFlowsUpdates(
|
|||||||
timeoutSeconds: Seconds = 30,
|
timeoutSeconds: Seconds = 30,
|
||||||
scope: CoroutineScope = CoroutineScope(Dispatchers.Default),
|
scope: CoroutineScope = CoroutineScope(Dispatchers.Default),
|
||||||
exceptionsHandler: (suspend (Exception) -> Unit)? = null,
|
exceptionsHandler: (suspend (Exception) -> Unit)? = null,
|
||||||
flowsUpdatesFilterUpdatesKeeperCount: Int = 64,
|
flowsUpdatesFilterUpdatesKeeperCount: Int = 100,
|
||||||
flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit = {}
|
flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit = {}
|
||||||
): FlowsUpdatesFilter = FlowsUpdatesFilter(flowsUpdatesFilterUpdatesKeeperCount).apply {
|
): FlowsUpdatesFilter = FlowsUpdatesFilter(flowsUpdatesFilterUpdatesKeeperCount).apply {
|
||||||
flowUpdatesPreset()
|
flowUpdatesPreset()
|
||||||
|
@ -8,7 +8,7 @@ import com.github.insanusmokrassar.TelegramBotAPI.updateshandlers.FlowsUpdatesFi
|
|||||||
* @see flowsUpdatesFilter
|
* @see flowsUpdatesFilter
|
||||||
*/
|
*/
|
||||||
inline fun flowsUpdatesFilter(
|
inline fun flowsUpdatesFilter(
|
||||||
internalChannelsSizes: Int = 64,
|
internalChannelsSizes: Int = 100,
|
||||||
block: FlowsUpdatesFilter.() -> Unit
|
block: FlowsUpdatesFilter.() -> Unit
|
||||||
): FlowsUpdatesFilter {
|
): FlowsUpdatesFilter {
|
||||||
val filter = FlowsUpdatesFilter(internalChannelsSizes)
|
val filter = FlowsUpdatesFilter(internalChannelsSizes)
|
||||||
|
@ -76,7 +76,7 @@ fun RequestsExecutor.startGettingFlowsUpdatesByLongPolling(
|
|||||||
timeoutSeconds: Seconds = 30,
|
timeoutSeconds: Seconds = 30,
|
||||||
scope: CoroutineScope = CoroutineScope(Dispatchers.Default),
|
scope: CoroutineScope = CoroutineScope(Dispatchers.Default),
|
||||||
exceptionsHandler: ExceptionHandler<Unit>? = null,
|
exceptionsHandler: ExceptionHandler<Unit>? = null,
|
||||||
flowsUpdatesFilterUpdatesKeeperCount: Int = 64,
|
flowsUpdatesFilterUpdatesKeeperCount: Int = 100,
|
||||||
flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit = {}
|
flowUpdatesPreset: FlowsUpdatesFilter.() -> Unit = {}
|
||||||
): FlowsUpdatesFilter = FlowsUpdatesFilter(flowsUpdatesFilterUpdatesKeeperCount).apply {
|
): FlowsUpdatesFilter = FlowsUpdatesFilter(flowsUpdatesFilterUpdatesKeeperCount).apply {
|
||||||
flowUpdatesPreset()
|
flowUpdatesPreset()
|
||||||
|
Loading…
Reference in New Issue
Block a user