mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +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.SerialName
|
||||||
import kotlinx.serialization.Serializable
|
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
|
@Serializable
|
||||||
data class BotCommand(
|
data class BotCommand(
|
||||||
|
Loading…
Reference in New Issue
Block a user