From 25790448417d30b3c9db981a521a4cd27c9a40ac Mon Sep 17 00:00:00 2001 From: krau <71133316+krau@users.noreply.github.com> Date: Wed, 19 Feb 2025 13:56:30 +0800 Subject: [PATCH] fix: update permission check --- bot/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/handlers.go b/bot/handlers.go index 06de42b..6e4503d 100644 --- a/bot/handlers.go +++ b/bot/handlers.go @@ -46,7 +46,7 @@ const noPermissionText string = ` func checkPermission(ctx *ext.Context, update *ext.Update) error { userID := update.GetUserChat().GetID() - if !slice.Contain(config.Cfg.Telegram.Admins, userID) { + if !slice.Contain(config.Cfg.GetUsersID(), userID) { ctx.Reply(update, ext.ReplyTextString(noPermissionText), nil) return dispatcher.EndGroups }