Answer the question
In order to leave comments, you need to log in
How to run example.py from a script?
Hello! I wrote a bot in tg and I'm trying to run a script from this bot with another bot, it starts through os.startfile (), but the second bot does not respond to / start, but if you run a simple script, like print () inside, then everything starts. What could be the problem? I tried subprocess.call, popen, run, nothing works ((already broke my whole head
upd
The script is launched via subprocess.call(['python', file]) but this second bot does not respond to commands, but if you run exactly the same bot with the only function hello, then the bot in tg answers 0_o
I need to run a large script on 2k lines, only with a different token
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question