1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +00:00

remove caption based messages extension for parsing of commands

This commit is contained in:
InsanusMokrassar 2021-03-24 13:56:51 +06:00
parent 1ddd138ff7
commit 112c86c9da

View File

@ -60,10 +60,3 @@ fun CaptionedInput.parseCommandsWithParams(
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)