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.


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>>