Main admin now can access keyboard without any log in console

This commit is contained in:
BarsTiger
2023-05-06 15:10:28 +03:00
parent f3c372fa8f
commit 2789ef6461

View File

@@ -7,9 +7,6 @@ async def other_user(call: types.CallbackQuery) -> bool:
await call.answer('Error, original call was removed', show_alert=True) await call.answer('Error, original call was removed', show_alert=True)
return True return True
elif call.from_user.id == ADMIN: elif call.from_user.id == ADMIN:
print(f"call.from_user.id: {call.from_user.id}")
print(f"ADMIN: {ADMIN}")
print("User is Admin")
return False return False
elif call.message.reply_to_message.from_id != call.from_user.id: elif call.message.reply_to_message.from_id != call.from_user.id: