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:
parent
1ddd138ff7
commit
112c86c9da
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user