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.
52 stars 50 forks source link

how to add user in channel #1

Closed sagar3506 closed 4 years ago

sagar3506 commented 4 years ago

hey i like ur script but i dont known how to add users in channel after scraping

i try with option 2 but its show error

image

mantoayo commented 4 years ago

i have the same errors when i try add members from .csv to group or channel

saretto28 commented 4 years ago

ho gli stessi errori quando provo ad aggiungere membri da .csv al gruppo o al canale

same problem you too could solve?

mantoayo commented 4 years ago

Unfortunately not... :/

gsusI commented 4 years ago

To run option 2, you'll need to pass the CSV path as a parameter, when running the script. In your case, looks like it'd be: python3 sp.py list_of_users.csv

Let me know if that solves the problem

mantoayo commented 4 years ago

I run the script through PyCharm. Can you explain to me step by step where in the script and what information should I put for option 2 to work? I have scrapped list.csv

mantoayo commented 4 years ago

To run option 2, you'll need to pass the CSV path as a parameter, when running the script. In your case, looks like it'd be: python3 sp.py list_of_users.csv

Let me know if that solves the problem

Ok i run this script through linux and work well but only for group, i cant add any members to channel....

gsusI commented 4 years ago

As specified in the README file: _Adding users by Username expects a CSV file with one username per line. Adding users by User ID expects a CSV file such as: username,user_id,user_accesshash

Is the format of your CSV correct?

iravkr commented 4 years ago

Hi...Sorry to disturb you. Can you please share how to add my contact list to my channel. Thanks in advance.

itismrx commented 4 years ago

Hay... I was hoping if you could tell me how can I add users to my channel. thanks

gsusI commented 4 years ago

I believe the issue is solved, if to add users to a channel please prepare the CSV with the appropriate format and use the following command: python3 telethon-bot-add-users-to-groups.py list_of_users.csv

itismrx commented 4 years ago

I can't find sp.py .

On Thu, Jun 4, 2020 at 12:51 PM Jesus Iniesta notifications@github.com wrote:

Closed #1 https://github.com/gsusI/Telegram-Group-or-Channel-users-to-CSV/issues/1 .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gsusI/Telegram-Group-or-Channel-users-to-CSV/issues/1#event-3406050020, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBBO5R3PUIUBTAQTS3FTR3RU5VDZANCNFSM4KKLIXZQ .

iravkr commented 4 years ago

He renamed it...this is the same file as on github..though the channel part id not working..I hope he helps us with the channel also...

gsusI commented 4 years ago

I'm not actively using this anymore, please feel free to contribute to the codebase and send a pull request.