1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-03 07:09:23 +00:00

Update CommonMessageFilterExcludeCommand.kt

This commit is contained in:
2024-10-17 00:30:15 +06:00
committed by GitHub
parent f84180b3ff
commit e895c2f3a8

View File

@@ -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(