mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-10-28 15:33:51 +00:00
Update CommonMessageFilterExcludeCommand.kt
This commit is contained in:
1 parent
f84180b3ff
commit
e895c2f3a8
1 file changed
+2
-2
+2
-2
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user