mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-04 15:49:41 +00:00
remove redundant extensions for parseCommandsWithParams
This commit is contained in:
@@ -40,24 +40,10 @@ fun List<TextSource>.parseCommandsWithParams(
|
|||||||
/**
|
/**
|
||||||
* Parse commands and their args. Logic will find command, get all subsequent data as args until new command
|
* Parse commands and their args. Logic will find command, get all subsequent data as args until new command
|
||||||
*/
|
*/
|
||||||
fun TextedInput.parseCommandsWithParams(
|
fun TextedWithTextSources.parseCommandsWithParams(
|
||||||
argsSeparator: Regex = defaultArgsSeparator
|
|
||||||
) = textSources.parseCommandsWithParams(argsSeparator)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Parse commands and their args. Logic will find command, get all subsequent data as args until new command
|
|
||||||
*/
|
|
||||||
fun TextedOutput.parseCommandsWithParams(
|
|
||||||
argsSeparator: Regex = defaultArgsSeparator
|
argsSeparator: Regex = defaultArgsSeparator
|
||||||
) = textSources ?.parseCommandsWithParams(argsSeparator) ?: emptyMap()
|
) = textSources ?.parseCommandsWithParams(argsSeparator) ?: emptyMap()
|
||||||
|
|
||||||
/**
|
|
||||||
* Parse commands and their args. Logic will find command, get all subsequent data as args until new command
|
|
||||||
*/
|
|
||||||
fun CaptionedInput.parseCommandsWithParams(
|
|
||||||
argsSeparator: Regex = defaultArgsSeparator
|
|
||||||
) = textSources.parseCommandsWithParams(argsSeparator)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse commands and their args. Logic will find command, get all subsequent data as args until new command
|
* Parse commands and their args. Logic will find command, get all subsequent data as args until new command
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user