From c0273789d34bf8196ac5ec5abdaf7ae3a9adc95b Mon Sep 17 00:00:00 2001 From: Amarnath C Date: Thu, 8 Aug 2024 00:28:06 +0530 Subject: [PATCH] Update updates.go add todo tasks. --- telegram/updates.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/telegram/updates.go b/telegram/updates.go index baf43a39..2efb8e9b 100644 --- a/telegram/updates.go +++ b/telegram/updates.go @@ -14,6 +14,11 @@ import ( "github.com/pkg/errors" ) +// TODO: confine sort to when new handler priorities are set. +// way to set prio on adding event handler (this solves todo-1) +// calling endGroup from inside the event handler. +// make it more efficient + type Handle interface { IsMatch(text string) bool SetPriority(priority int) *Handle