From 602ed91ef624667d1b504fbf4b542647390e55da Mon Sep 17 00:00:00 2001 From: purofle Date: Sun, 12 May 2024 13:11:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handlers.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/handlers.go b/handlers.go index 4cfc3b5..6688bda 100644 --- a/handlers.go +++ b/handlers.go @@ -105,6 +105,11 @@ func CommandRemakeData(c tele.Context) error { } func CommandEat(c tele.Context) error { + if !(c.Chat().Type == tele.ChatPrivate || c.Chat().ID == -1001965344356) { + fmt.Println(c.Chat().ID) + return nil + } + method := []string{"炒", "蒸", "煮"} // 获取时间段 @@ -135,6 +140,11 @@ func CommandEat(c tele.Context) error { } func CommandOnText(c tele.Context) error { + + if c.Chat().ID != -1001965344356 { + return nil + } + if c.Message().ReplyTo != nil { text := quotely.QuoteReply(c.Bot(), c.Message()) if text != "" {