1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-23 09:07:12 +00:00

several small additions

This commit is contained in:
InsanusMokrassar 2021-01-08 00:30:29 +06:00
parent ce0fceb240
commit e2dddf96a1
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,5 @@
@file:Suppress("unused", "UNCHECKED_CAST")
package dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling
@ -15,9 +17,11 @@ import dev.inmo.tgbotapi.types.message.content.abstracts.*
import dev.inmo.tgbotapi.types.message.content.media.*
import dev.inmo.tgbotapi.types.message.payments.InvoiceContent
import dev.inmo.tgbotapi.updateshandlers.FlowsUpdatesFilter
import dev.inmo.tgbotapi.utils.PreviewFeature
import kotlinx.coroutines.flow.filter
@PreviewFeature
internal suspend inline fun <reified T : MessageContent> BehaviourContext.onContent(
includeFilterByChatInBehaviourSubContext: Boolean = true,
includeMediaGroups: Boolean = true,

View File

@ -0,0 +1,2 @@
package dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling