Update is_admin

This commit is contained in:
Whispering Wind
2024-08-06 22:13:12 +03:30
committed by GitHub
parent 02d91660c5
commit c2960e1ca8

View File

@ -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: