приватные каналы

This commit is contained in:
Artem Tsyrulnikov
2026-01-21 12:16:02 +03:00
parent b5695360c2
commit 2c0dcbef97
7 changed files with 59 additions and 89 deletions

View File

@@ -321,7 +321,11 @@ func (b *Bot) Update(u *echotron.Update) {
b.exec = e
defer func() { b.exec = nil }()
if b.CurrentState == nil {
isStartCommand := u.Message != nil && (u.Message.Text == "/start" ||
u.Message.Text == "/start login" ||
strings.HasPrefix(u.Message.Text, "/start project_"))
if b.CurrentState == nil && !isStartCommand {
b.SetState(b.commandRouter("/start"), EditMessage)
}