tgbot - restart

change restart force to restart
This commit is contained in:
mhsanaei
2025-03-08 23:08:04 +01:00
parent 700cf9c10b
commit a0dd101d97
13 changed files with 24 additions and 26 deletions

View File

@@ -307,8 +307,6 @@ func (t *Tgbot) answerCommand(message *telego.Message, chatId int64, isAdmin boo
onlyMessage = true
if isAdmin {
if len(commandArgs) == 0 {
msg += t.I18nBot("tgbot.commands.restartUsage")
} else if strings.ToLower(commandArgs[0]) == "force" {
if t.xrayService.IsXrayRunning() {
err := t.xrayService.RestartXray(true)
if err != nil {