From 83c253901ba2059d0e0a1fd5b804887e2d5f33cf Mon Sep 17 00:00:00 2001 From: Benny Date: Fri, 23 Feb 2024 20:28:26 +0100 Subject: [PATCH] forget to trigger AI --- handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler.go b/handler.go index 77d4c60..d790f53 100644 --- a/handler.go +++ b/handler.go @@ -48,7 +48,6 @@ func mainEntrance(c tb.Context) error { _ = b.Notify(c.Chat(), tb.Typing) user := getUser(c.Sender().ID) mode := user.Mode - selector.Inline(selector.Row(btnPrev)) if mode == "ai" { if getChatsCount(c.Sender().ID) == 0 { @@ -141,7 +140,8 @@ func archiveRunner(m, replied *tb.Message, provider archiveProvider) { arc(m, replied, provider, url) time.Sleep(sleep / 2) } - _, _ = b.Edit(replied, Finish) + selector.Inline(selector.Row(btnPrev)) + _, _ = b.Edit(replied, Finish, selector) }