devtools: fix relative imports inside eval

This commit is contained in:
Sipak
2025-06-05 11:04:43 +05:30
committed by GitHub
parent db7abae627
commit 7d689dd7f1

View File

@@ -331,7 +331,8 @@ async def aexec(code, event):
'reply': await event.get_reply_message(),
'chat': event.chat_id,
'u': u,
'__builtins__': __builtins__
'__builtins__': __builtins__,
'__name__': __name__
}
# Format the async function definition