waitCommandMessage
suspend fun BehaviourContext.waitCommandMessage(commandRegex: Regex, initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<TextContent>>
Will filter all the messages and include required commands with commandRegex.
In case you wish to get only the commands at the start of message, use requireCommandAtStart
In case you wish to exclude messages with more than one command, you may use requireSingleCommand
In case you wish to exclude messages with commands params, you may use requireCommandsWithoutParams
suspend fun BehaviourContext.waitCommandMessage(command: String, initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<TextContent>>
suspend fun BehaviourContext.waitCommandMessage(botCommand: BotCommand, initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<TextContent>>