1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-02 15:00:06 +00:00

Compare commits

..

No commits in common. "c1330f8e3217ef505c6918b89992f2c11c7d3761" and "3149fd0231b3e0b4d6533e7764840bfaef81efd2" have entirely different histories.

3 changed files with 5 additions and 13 deletions

View File

@ -1,13 +1,5 @@
# TelegramBotAPI changelog # TelegramBotAPI changelog
## 2.0.1
* `Versions`:
* `Ktor`: `2.0.1` -> `2.0.2`
* `MicroUtils`: `0.10.5` -> `0.10.8`
* `Utils`:
* `TelegramBot#longPolling` now accepts `UpdatesFilter` instead of `FlowsUpdatesFilter`
## 2.0.0 ## 2.0.0
___ALL PREVIOUS DEPRECATIONS HAVE BEEN REMOVED___ ___ALL PREVIOUS DEPRECATIONS HAVE BEEN REMOVED___

View File

@ -10,9 +10,9 @@ kotlin_coroutines_version=1.6.1
kotlin_serialisation_runtime_version=1.3.3 kotlin_serialisation_runtime_version=1.3.3
korlibs_version=2.7.0 korlibs_version=2.7.0
uuid_version=0.4.0 uuid_version=0.4.0
ktor_version=2.0.2 ktor_version=2.0.1
micro_utils_version=0.10.8 micro_utils_version=0.10.5
javax_activation_version=1.1.1 javax_activation_version=1.1.1
@ -20,6 +20,6 @@ javax_activation_version=1.1.1
dokka_version=1.6.21 dokka_version=1.6.21
library_group=dev.inmo library_group=dev.inmo
library_version=2.0.1 library_version=2.0.0
github_release_plugin_version=2.3.7 github_release_plugin_version=2.3.7

View File

@ -166,11 +166,11 @@ suspend fun TelegramBot.flushAccumulatedUpdates(
* all updates receivers, because this method will trigger getting of updates and. * all updates receivers, because this method will trigger getting of updates and.
*/ */
fun TelegramBot.longPolling( fun TelegramBot.longPolling(
updatesFilter: UpdatesFilter, flowsUpdatesFilter: FlowsUpdatesFilter,
timeoutSeconds: Seconds = 30, timeoutSeconds: Seconds = 30,
scope: CoroutineScope = CoroutineScope(Dispatchers.Default), scope: CoroutineScope = CoroutineScope(Dispatchers.Default),
exceptionsHandler: ExceptionHandler<Unit>? = null exceptionsHandler: ExceptionHandler<Unit>? = null
): Job = updatesFilter.run { ): Job = flowsUpdatesFilter.run {
startGettingOfUpdatesByLongPolling(timeoutSeconds, scope, exceptionsHandler, allowedUpdates, asUpdateReceiver) startGettingOfUpdatesByLongPolling(timeoutSeconds, scope, exceptionsHandler, allowedUpdates, asUpdateReceiver)
} }