From c2960e1ca8c70d2f6503d1bf28f5160207a3fa4d Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:13:12 +0330 Subject: [PATCH] Update is_admin --- core/tbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tbot.py b/core/tbot.py index e2d8c49..9419975 100644 --- a/core/tbot.py +++ b/core/tbot.py @@ -32,7 +32,7 @@ def is_admin(user_id): @bot.message_handler(commands=['start']) def send_welcome(message): - if is_admin(message): + if is_admin(message.from_user.id): markup = create_main_markup() bot.reply_to(message, "Welcome to the User Management Bot!", reply_markup=markup) else: