mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 00:03:48 +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 `!`**
|
* **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
|
* @param textBeginOnly Pass true (default) to check only start of message. Pass false to search in whole text of
|
||||||
* content
|
* content
|
||||||
*/
|
*/
|
||||||
fun CommonMessageFilterExcludeCommand(
|
fun CommonMessageFilterExcludeCommand(
|
||||||
command: String?,
|
command: String? = null,
|
||||||
textBeginOnly: Boolean = true
|
textBeginOnly: Boolean = true
|
||||||
): CommonMessageFilter<*> {
|
): CommonMessageFilter<*> {
|
||||||
return !CommonMessageFilterIncludeText(
|
return !CommonMessageFilterIncludeText(
|
||||||
|
Loading…
Reference in New Issue
Block a user