title: Eval Exec on Async Telebot
body: <p><a href="https://user-images.githubusercontent.com/20538090/160258926-405804cc-dad7-42ce-8dc1-e92bba7acb1e.png" rel="nofollow noreferrer">https://user-images.githubusercontent.com/20538090/160258926-405804cc-dad7-42ce-8dc1-e92bba7acb1e.png</a></p>
  <p>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?</p>
  <p>My eval &amp; exec code</p>
  <pre><code>if msg.startswith(&quot;/eval &quot;):
      command = msg.replace(&quot;/eval &quot;,&quot;&quot;)
      Do = eval(command)
      if Do != None:
          bot.send_message(chat_id,str(Do))
          return
      elif msg.startswith(&quot;/exec &quot;):
          command = msg.replace(&quot;/exec &quot;,&quot;&quot;).strip()
          command = command.replace(&quot;bsm(&quot;, &quot;bot.send_message(chat_id,&quot;)
  
          exec(command)
      return
  </code></pre>
  <p>Before async:
  <a href="https://user-images.githubusercontent.com/20538090/160259071-011fe294-b4c8-41bd-9b9e-662885195bbb.png" rel="nofollow noreferrer">https://user-images.githubusercontent.com/20538090/160259071-011fe294-b4c8-41bd-9b9e-662885195bbb.png</a></p>
  <p>After async:
  <a href="https://user-images.githubusercontent.com/20538090/160259040-c0af13c2-6064-46d6-b379-ccdf8bfc79d8.png" rel="nofollow noreferrer">https://user-images.githubusercontent.com/20538090/160259040-c0af13c2-6064-46d6-b379-ccdf8bfc79d8.png</a>
  (No answer)</p>