mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
update BotCommandNameRegex
This commit is contained in:
parent
22e8b06fda
commit
69973c597b
@ -4,7 +4,7 @@ import com.github.insanusmokrassar.TelegramBotAPI.utils.throwRangeError
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
val BotCommandNameRegex = Regex("[a-z_0-9]{1,32}")
|
||||
val BotCommandNameRegex = Regex("^[a-z_0-9]{${botCommandLengthLimit.first},${botCommandLengthLimit.last}}$")
|
||||
|
||||
@Serializable
|
||||
data class BotCommand(
|
||||
|
Loading…
Reference in New Issue
Block a user