1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-21 15:53:47 +00:00

Update CommonMessageFilterExcludeCommand.kt

This commit is contained in:
InsanusMokrassar 2024-10-17 00:30:15 +06:00 committed by GitHub
parent f84180b3ff
commit e895c2f3a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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(