1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 03:58:44 +00:00

waitContentMessage with includeMediaGroups

This commit is contained in:
InsanusMokrassar 2021-06-30 11:45:56 +06:00
parent 4f920abb61
commit a241c91adf
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@
factory `BehaviourContext(TelegramBot, CoroutineScope, FlowsUpdatesFilter)` factory `BehaviourContext(TelegramBot, CoroutineScope, FlowsUpdatesFilter)`
* Extension `buildBehaviour` (and all related extensions/functions) for opportunity to pass * Extension `buildBehaviour` (and all related extensions/functions) for opportunity to pass
`defaultExceptionsHandler` `defaultExceptionsHandler`
* Trigger `onContentMessage` now may include media groups * Trigger `onContentMessage` and waiter `waitContentMessage` now may include media groups
* `API`: * `API`:
* All `reply` and subsequent extensions have been replaced in send package * All `reply` and subsequent extensions have been replaced in send package
* `Utils`: * `Utils`:

View File

@ -63,8 +63,9 @@ suspend fun BehaviourContext.waitContentMessage(
initRequest: Request<*>? = null, initRequest: Request<*>? = null,
errorFactory: NullableRequestBuilder<*> = { null }, errorFactory: NullableRequestBuilder<*> = { null },
count: Int = 1, count: Int = 1,
includeMediaGroups: Boolean = true,
filter: CommonMessageToContentMapper<MessageContent>? = null filter: CommonMessageToContentMapper<MessageContent>? = null
) = waitContent(count, initRequest, false, errorFactory, filter) ) = waitContent(count, initRequest, includeMediaGroups, errorFactory, filter)
suspend fun BehaviourContext.waitContact( suspend fun BehaviourContext.waitContact(
initRequest: Request<*>? = null, initRequest: Request<*>? = null,
errorFactory: NullableRequestBuilder<*> = { null }, errorFactory: NullableRequestBuilder<*> = { null },