Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[adding 25 member only] Trying to increase. Add by ID to increase. Filter member to increase. #15

Open
EniMusguera opened this issue Sep 20, 2022 · 0 comments

Comments

@EniMusguera
Copy link

EniMusguera commented Sep 20, 2022

Hello. I'm trying to modify it instead of adding with the username, the id.

The intention of doing this is because I add an average of 25 people per telegram.
I'm trying to increase this number.

I suppose that doing this method and filtering if the user is already in the group or not, I can increase this number.

UPDATE: This "pass" doesn't work either. I think the correct thing would be to filter the csv of the members that are already in the same group. It seems to me the best way.

If anyone can help me, thank you very much!
Original (works):
try: if user['username'] == "": continue user_to_add = client.get_input_entity(user['username']) client(InviteToChannelRequest(entity, [user_to_add]))
Mod ID (doesnt works):
try: if user['user_id'] == "": pass user_to_add = client.get_input_entity(user['user_id']) client(InviteToChannelRequest(entity, [user_to_add]))

If that doesn't work, you could simply "pass" instead of "continue".
for user in users: if user['username'] == "": pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant