Chat history tweaks, handlers priority fix, system prompt clarification #28

Merged
skobkin merged 2 commits from feature_chat_history into main 2024-10-27 23:06:45 +00:00
Showing only changes of commit edf2158d29 - Show all commits

View file

@ -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()