Dispatcher, Commands, Filters, Markdown escaping

This commit is contained in:
2023-01-22 23:54:54 +03:00
parent 677f28182a
commit e2ba9565d5
8 changed files with 133 additions and 20 deletions

5
bot.go
View File

@ -30,11 +30,8 @@ func (b *bot) Update(u *echo.Update) {
b.lock.Lock()
defer b.lock.Unlock()
newState, err := b.state.Call(upd)
err := b.state.Call(upd)
if err != nil {
upd.LogError("", err, true)
}
if newState != nil {
b.state = newState
}
}