Skip to content

Commit

Permalink
forget to trigger AI
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Feb 23, 2024
1 parent 7749400 commit 83c2539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)

}

Expand Down

0 comments on commit 83c2539

Please sign in to comment.