docs

# command

suspend fun < BC : BehaviourContext > BC . command ( commandRegex: Regex , requireOnlyCommandInMessage: Boolean = true, initialFilter: CommonMessageFilter < TextContent >? = CommonMessageFilterExcludeMediaGroups, subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver < BC , Boolean , CommonMessage < TextContent >, Update > = MessageFilterByChat, markerFactory: MarkerFactory <in CommonMessage < TextContent >, Any > = ByChatMessageMarkerFactory, scenarioReceiver: CustomBehaviourContextAndTypeReceiver < BC , Unit , CommonMessage < TextContent >>): Job
Content copied to clipboard
suspend fun < BC : BehaviourContext > BC . command ( command: String , requireOnlyCommandInMessage: Boolean = true, initialFilter: CommonMessageFilter < TextContent >? = CommonMessageFilterExcludeMediaGroups, subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver < BC , Boolean , CommonMessage < TextContent >, Update > = MessageFilterByChat, markerFactory: MarkerFactory <in CommonMessage < TextContent >, Any > = ByChatMessageMarkerFactory, scenarioReceiver: CustomBehaviourContextAndTypeReceiver < BC , Unit , CommonMessage < TextContent >>): Job
Content copied to clipboard