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

Using multiple accounts and adding by ID #22

Open
vmail opened this issue Nov 18, 2022 · 0 comments
Open

Using multiple accounts and adding by ID #22

vmail opened this issue Nov 18, 2022 · 0 comments

Comments

@vmail
Copy link

vmail commented Nov 18, 2022

There is a problem when adding multiple accounts by ID, you select 1 account to do the scraping and then multiple accounts when adding by ID, not everyone has a username. The problem is the access hash is unique to the account that did the scraping, so when adding from another account returns

InputPeerUser(user_id=14********, access_hash=-29695644747********)
[!] Some Other error in adding Invalid object ID for a user. Make sure to pass the right types, for instance making sure that the request is designed for users or otherwise look for a different one more suited (caused by InviteToChannelRequest)

The original account that did the scraping has no issues with adding members

Also this code only adds to groups and not to channels

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