Before switching to async telebot, I wrote eval and exec commands, so I could manage the bot from telegram, but I can't use it after doing async, could you please help?
My eval & exec code
if msg.startswith("/eval "):
command = msg.replace("/eval ","")
Do = eval(command)
if Do != None:
bot.send_message(chat_id,str(Do))
return
elif msg.startswith("/exec "):
command = msg.replace("/exec ","").strip()
command = command.replace("bsm(", "bot.send_message(chat_id,")
exec(command)
return
Before async: https://user-images.githubusercontent.com/20538090/160259071-011fe294-b4c8-41bd-9b9e-662885195bbb.png
After async: https://user-images.githubusercontent.com/20538090/160259040-c0af13c2-6064-46d6-b379-ccdf8bfc79d8.png (No answer)