Constructors for keyboard and options, CallbackHandler

This commit is contained in:
2023-04-13 11:14:37 +03:00
parent b7f1e3e9ed
commit dd0307e382
4 changed files with 32 additions and 0 deletions

6
bot.go
View File

@ -36,5 +36,11 @@ func (b *bot) Update(u *echo.Update) {
b.lock.Lock()
defer b.lock.Unlock()
// defer func() {
// if r := recover(); r != nil {
// log.Printf("[%s] Recovered. Error: %s\n", upd.UpdateID.String(), r)
// }
// }()
b.handler(upd)
}