#subprocess

19 messages · Page 1 of 1 (latest)

humble tiger
#

os.system('start cmd')
time.sleep(1.5)
keyboard.write('python' + ' ' + program + ' ' + api_id + ' ' + api_hash + ' ' + phone + ' ' + file + ' ' + str(scraped_grp))
keyboard.press_and_release('Enter')
print(f'{plus}{lg} Launched from {phone}')

turn these lines to use subprocess like this is wrong?

cmd = f'python {program} {api_id} {api_hash} {phone} {file} {str(scraped_grp)}'
subprocess.Popen(['cmd', '/c', 'start', 'cmd', '/k', cmd])
print(f'{plus}{lg} Launched from {phone}')

chrome fern
#

What's this for?

reef oyster
#

Why do you need this code to work? It's sketchy and we really don't wanna help with it because its uses aren't really legitimate...

slate cloud
#

@humble tiger Please refrain from using Mass DM bots on telegram, as it's against their Terms of Service.

#

You will also not receive any help from us regarding the code.

worldly spear
#

💀

slate cloud
#

Correct me if I'm wrong

#

😂

slate cloud
#

github

worldly spear
#

You can search for code on github

#

That's neat

slate cloud
#

yea

worldly spear
#

Never knew

slate cloud
#

switch type to code

worldly spear
#

I see