Main admin now can access keyboard without any log in console
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user