mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-24 11:08:43 +00:00
Update CommonMessageFilterExcludeCommand.kt
This commit is contained in:
parent
f84180b3ff
commit
e895c2f3a8
@ -11,12 +11,12 @@ import dev.inmo.tgbotapi.types.message.textsources.BotCommandTextSource
|
||||
*
|
||||
* **Command line starts with `/` or `!`**
|
||||
*
|
||||
* @param command Pass non-null value to search specific command or null to search any command
|
||||
* @param command Pass non-null value to search specific command or null (default) to search any command
|
||||
* @param textBeginOnly Pass true (default) to check only start of message. Pass false to search in whole text of
|
||||
* content
|
||||
*/
|
||||
fun CommonMessageFilterExcludeCommand(
|
||||
command: String?,
|
||||
command: String? = null,
|
||||
textBeginOnly: Boolean = true
|
||||
): CommonMessageFilter<*> {
|
||||
return !CommonMessageFilterIncludeText(
|
||||
|
Loading…
Reference in New Issue
Block a user