deprecate waitEditedPoll and rename poll updates waiters

This commit is contained in:
InsanusMokrassar committed 2021-10-03 21:14:28 +06:00
1 parent 834e31906a
commit e1e2b93269
2 files changed
+4 -6

No files matched your search

@@ -119,9 +119,7 @@ suspend fun BehaviourContext.waitEditedStaticLocation(
filter: SimpleFilter<CommonMessage<StaticLocationContent>>? = null,
mapper: CommonMessageToContentMapper<StaticLocationContent>? = null
) = waitEditedContent(count, initRequest, false, errorFactory, filter, mapper)
/**
* This
*/
@Deprecated("Potentially, this trigger will never be used. Use `waitPollUpdates` instead")
suspend fun BehaviourContext.waitEditedPoll(
initRequest: Request<*>? = null,
errorFactory: NullableRequestBuilder<*> = { null },
@@ -59,7 +59,7 @@ private suspend inline fun <reified T : Poll> BehaviourContext.waitPolls(
/**
* This wait will be triggered only for stopped polls and polls, which are sent by the bot
*/
suspend fun BehaviourContext.waitPollsUpdates(
suspend fun BehaviourContext.waitPollUpdates(
initRequest: Request<*>? = null,
errorFactory: NullableRequestBuilder<*> = { null },
count: Int = 1,
@@ -70,7 +70,7 @@ suspend fun BehaviourContext.waitPollsUpdates(
/**
* This wait will be triggered only for stopped polls and polls, which are sent by the bot
*/
suspend fun BehaviourContext.waitQuizPollsUpdates(
suspend fun BehaviourContext.waitQuizPollUpdates(
initRequest: Request<*>? = null,
errorFactory: NullableRequestBuilder<*> = { null },
count: Int = 1,
@@ -81,7 +81,7 @@ suspend fun BehaviourContext.waitQuizPollsUpdates(
/**
* This wait will be triggered only for stopped polls and polls, which are sent by the bot
*/
suspend fun BehaviourContext.waitRegularPollsUpdates(
suspend fun BehaviourContext.waitRegularPollUpdates(
initRequest: Request<*>? = null,
errorFactory: NullableRequestBuilder<*> = { null },
count: Int = 1,