Package-level declarations
Functions
Link copied to clipboard
suspend fun <BC : BehaviourContext> BC.onCommandPrivacy(requireOnlyCommandInMessage: Boolean = true, initialFilter: CommonMessageFilter<TextContent>? = CommonMessageFilterExcludeMediaGroups, subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, TextMessage, Update>? = null, markerFactory: MarkerFactory<in TextMessage, Any>? = null, scenarioReceiver: CustomBehaviourContextAndTypeReceiver<BC, Unit, TextMessage>)
Adding default handler for /privacy
command
suspend fun <BC : BehaviourContext> BC.onCommandPrivacy(textSources: List<TextSource>, requireOnlyCommandInMessage: Boolean = true, initialFilter: CommonMessageFilter<TextContent>? = CommonMessageFilterExcludeMediaGroups, subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, TextMessage, Update>? = null, markerFactory: MarkerFactory<in TextMessage, Any>? = null)
Adding default handler for /privacy
command. It will send text message with textSources as text.
suspend fun <BC : BehaviourContext> BC.onCommandPrivacy(text: String, parseMode: ParseMode? = null, requireOnlyCommandInMessage: Boolean = true, initialFilter: CommonMessageFilter<TextContent>? = CommonMessageFilterExcludeMediaGroups, subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver<BC, Boolean, TextMessage, Update>? = null, markerFactory: MarkerFactory<in TextMessage, Any>? = null)