fix: enforce required command arg positions

This commit is contained in:
2026-03-25 13:17:44 +03:00
parent f0da64c7af
commit eda635e72c
4 changed files with 22 additions and 6 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
)
// CmdRegexp matches command names allowed for Telegram command registration.
var CmdRegexp = regexp.MustCompile("^[a-zA-Z0-9]+$")
var CmdRegexp = regexp.MustCompile("^[_a-z0-9]+$")
// ErrTooManyCommands is returned when the total number of registered commands
// exceeds Telegram's limit of 100 bot commands per bot.