So the Telegram Bot can do different actions, depending on who activated the command. This concerns aiogram, a framework for Telegram Bot API
You could use a simple filtering system:
This solution in code:
roles={1234:'Admin', 1243:'User', 1223:'Moderator'}
@dp.message_handler()
async def handler(message: types.Message) -> None:
role=roles[message.from_user.id]
if role=='Admin': do_action()
elif role=='User': do_another_action()
elif role=='Moderator': do_yet_another_action()
#you can add a check at start, to see if person even has a role
#if message.from_user.id in roles: