I am trying to run my python-telegram-bot code multiple times with different settings/options. what is the best way to do this?
this code that i am working on is sort of an infusion of django to python-telegram-bot to use it's phenomenal ORM. I am trying to run multiple instances of my bot code with different tokens. I have read about subprocess and threading and still confused about what should I do?
should I even write a seprate python script and run it with the desired options/settings as arguments(with subprocess.run or os.system)?
This is going to be used in a webservice and is expected to run telegram bot instances as users need. so maybe 100 instances? it is desired to use the least cpu and memory.
ps: if there is a better title for this question suggest in comments please.
subprocessandthreading, I think you are looking for concurrency. But since you mention running it with different settings/options, it does not sound like you are doing that to maximize performance. Is that right?