From a0c3103d279147f0a18db47d436530fc1dda4c7c Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 9 Nov 2026 23:08:57 -0700 Subject: [PATCH] Remove catch-all handler. The webhook issue was due to an incorrectly configured endpoint for the Cloudflare tunnel and not *actually* the bot code. --- internal/app/bot.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/internal/app/bot.go b/internal/app/bot.go index 777f47d..0cd447a 100644 --- a/internal/app/bot.go +++ b/internal/app/bot.go @@ -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(),