From edf2158d2967d2975fff7723372009490d06c2ef Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 28 Oct 2024 01:55:17 +0300 Subject: [PATCH] Fixing handlers priority. --- bot/bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/bot.go b/bot/bot.go index 204cf7b..c9b3d01 100644 --- a/bot/bot.go +++ b/bot/bot.go @@ -99,11 +99,11 @@ func (b *Bot) Run() error { bh.Use(b.chatTypeStatsCounter) // Command handlers - bh.Handle(b.textMessageHandler, th.AnyMessageWithText()) bh.Handle(b.startHandler, th.CommandEqual("start")) bh.Handle(b.summarizeHandler, th.Or(th.CommandEqual("summarize"), th.CommandEqual("s"))) bh.Handle(b.statsHandler, th.CommandEqual("stats")) bh.Handle(b.helpHandler, th.CommandEqual("help")) + bh.Handle(b.textMessageHandler, th.AnyMessageWithText()) bh.Start()