You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: