1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-25 11:38:45 +00:00
This commit is contained in:
InsanusMokrassar 2023-02-13 12:03:17 +06:00
parent 48c4e90912
commit 0416b200b8
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ suspend fun BehaviourContext.waitContent(
errorFactory: NullableRequestBuilder<*> = { null }, errorFactory: NullableRequestBuilder<*> = { null },
includeMediaGroups: Boolean includeMediaGroups: Boolean
) = waitContent<MessageContent>(initRequest, errorFactory) ) = waitContent<MessageContent>(initRequest, errorFactory)
suspend fun BehaviourContext.waitContent( suspend fun BehaviourContext.waitAnyContent(
initRequest: Request<*>? = null, initRequest: Request<*>? = null,
errorFactory: NullableRequestBuilder<*> = { null } errorFactory: NullableRequestBuilder<*> = { null }
) = waitContent<MessageContent>(initRequest, errorFactory) ) = waitContent<MessageContent>(initRequest, errorFactory)

View File

@ -52,7 +52,7 @@ suspend fun BehaviourContext.waitContentMessage(
errorFactory: NullableRequestBuilder<*> = { null }, errorFactory: NullableRequestBuilder<*> = { null },
includeMediaGroups: Boolean includeMediaGroups: Boolean
) = waitContentMessage<MessageContent>(initRequest, errorFactory) ) = waitContentMessage<MessageContent>(initRequest, errorFactory)
suspend fun BehaviourContext.waitContentMessage( suspend fun BehaviourContext.waitAnyContentMessage(
initRequest: Request<*>? = null, initRequest: Request<*>? = null,
errorFactory: NullableRequestBuilder<*> = { null }, errorFactory: NullableRequestBuilder<*> = { null },
) = waitContentMessage<MessageContent>(initRequest, errorFactory) ) = waitContentMessage<MessageContent>(initRequest, errorFactory)