1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 12:08:43 +00:00

update kdocs for new function

This commit is contained in:
InsanusMokrassar 2021-03-24 13:44:27 +06:00
parent 1a5d1cde78
commit 1ddd138ff7

View File

@ -54,10 +54,16 @@ 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
*/
fun ContentMessage<TextContent>.parseCommandsWithParams(
argsSeparator: Regex = defaultArgsSeparator
) = content.parseCommandsWithParams(argsSeparator)
/**
* Parse commands and their args. Logic will find command, get all subsequent data as args until new command
*/
fun <T> ContentMessage<T>.parseCommandsWithParams(
argsSeparator: Regex = defaultArgsSeparator
) where T : CaptionedInput, T : MessageContent = content.parseCommandsWithParams(argsSeparator)