gsusI / Telegram-Group-or-Channel-users-to-CSV

Given a user with credentials, this script grabs all the groups and channels for the given user, allows you to select one, and exports all users into a CSV file within the same directory. It also gives the option to add users to your groups or channels.
49 stars 48 forks source link

Options not working #8

Open hykelauncher opened 3 years ago

hykelauncher commented 3 years ago

Option 2 and 3 not working, please help

Traceback (most recent call last): File "main.py", line 188, in add_users_to_group() File "main.py", line 25, in add_users_to_group input_file = sys.argv[1] IndexError: list index out of range termuxblack >

Itay602 commented 2 years ago

not workink for me too can you help??

Urhengulas commented 4 months ago

sys.argv[1] tries to get the first argument (the input file), but apparently it does not exist. You need to invoke it like python telethon-bot-add-users-to-groups.py members-file.csv.