fix nil State
This commit is contained in:
@@ -322,7 +322,7 @@ func (b *Bot) Update(u *echotron.Update) {
|
|||||||
defer func() { b.exec = nil }()
|
defer func() { b.exec = nil }()
|
||||||
|
|
||||||
if b.CurrentState == nil {
|
if b.CurrentState == nil {
|
||||||
b.CurrentState = b.commandRouter("/start")
|
b.SetState(b.commandRouter("/start"), EditMessage)
|
||||||
}
|
}
|
||||||
|
|
||||||
// === Обработка входящего события ===
|
// === Обработка входящего события ===
|
||||||
|
|||||||
Reference in New Issue
Block a user