Remove catch-all handler.

The webhook issue was due to an incorrectly configured endpoint for the
Cloudflare tunnel and not *actually* the bot code.
This commit is contained in:
Benjamin A. Shelton 2026-11-09 23:08:57 -07:00
commit a0c3103d27
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -100,7 +100,10 @@ func (b *bot) AttachHandlers() {
tu.InlineKeyboardButton("Go!").WithCallbackData("go"),
)),
))*/
return nil
_, err := ctx.Bot().SendMessage(ctx, tu.Message(
tu.ID(message.Chat.ID),
"This is a help message"))
return err
}, th.CommandEqual("help"))
}
@ -305,11 +308,6 @@ func (b *bot) SetWebhook(ctx context.Context, conf *settings.Settings) (err erro
return
}
b.handler.HandleMessage(func(ctx *th.Context, message telego.Message) error {
fmt.Println("received raw message:", message.Text)
return nil
})
go func() {
_ = http.ListenAndServe(
conf.Service.Webhook.ListenAddr(),