From 3c76896b189f7ee098d849d8198ed3945bb89da8 Mon Sep 17 00:00:00 2001 From: Artem Tsyrulnikov Date: Tue, 20 Jan 2026 15:24:39 +0300 Subject: [PATCH] fix nil State --- tg_bot/bot/bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tg_bot/bot/bot.go b/tg_bot/bot/bot.go index efb0123..2a048b5 100644 --- a/tg_bot/bot/bot.go +++ b/tg_bot/bot/bot.go @@ -322,7 +322,7 @@ func (b *Bot) Update(u *echotron.Update) { defer func() { b.exec = nil }() if b.CurrentState == nil { - b.CurrentState = b.commandRouter("/start") + b.SetState(b.commandRouter("/start"), EditMessage) } // === Обработка входящего события ===