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

How does software understand from what account to invite or to delete user? #195

Open
mihalt opened this issue May 27, 2022 · 5 comments
Open

Comments

@mihalt
Copy link

mihalt commented May 27, 2022

Hello! I found that SkypeUser.invite() and SkypeContact.delete() methods are not called on bot account which was logged. Explain me please, how do software will differ from what account it has to invite() or delete() users?

Will this user in which SkypeUser was found this contact be fetched from this SkypeUser object?

@Terrance
Copy link
Owner

I don't understand your question, and you're not filling in the issue template so I don't have a code sample or output from you to go on. Is this related to #194?

@mihalt
Copy link
Author

mihalt commented May 27, 2022

I don't understand your question, and you're not filling in the issue template so I don't have a code sample or output from you to go on. Is this related to #194?

Not very connected, but yes, it is a bot few bots.
Do I understand right, that for example .invite() method must be done on SkypeUser object of skype user which I want to add to my bot's contacts? And there are not any explicit opportunities to choose from which bot I want to do it. How does your lib understand from what of logged in bots invite request must be sent?

@Terrance
Copy link
Owner

SkPy isn't really designed to handle multiple connections in a single session -- why do you need multiple accounts? If you're automating multiple accounts from a single host, you're more likely to be flagged for spam.

If you obtain a SkypeUser from one Skype instance, then any actions on that user will be from the same account as that of the Skype instance. You can check the skype attribute for the related instance:

>>> sk
Skype(userId='fred.2')
>>> sk.contacts["anna.7"]
SkypeUser(id='anna.7', ...)
>>> sk.contacts["anna.7"].skype is sk
True

@mihalt
Copy link
Author

mihalt commented May 28, 2022

SkPy isn't really designed to handle multiple connections in a single session -- why do you need multiple accounts? If you're automating multiple accounts from a single host, you're more likely to be flagged for spam.

If you obtain a SkypeUser from one Skype instance, then any actions on that user will be from the same account as that of the Skype instance. You can check the skype attribute for the related instance:

>>> sk
Skype(userId='fred.2')
>>> sk.contacts["anna.7"]
SkypeUser(id='anna.7', ...)
>>> sk.contacts["anna.7"].skype is sk
True

I have one account which can do newsletter (but real man can use it too), but another accounts for inner use only. So, don't think that they can be market as spam.

Ok, I see. So, if I want to invite or delete one bot from another bot, I have to search them in Skype manually by login? I can't only send SkypeUser object of bot to .invite() method, right?

@Terrance
Copy link
Owner

If you're just running two bots then you don't need to automate their mutual invite as that's a one-time operation -- just add one as a contact of the other through a client. As stated above, you need to fetch a potential contact from the SkypeContacts instance of the user you're sending the invite from.

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

No branches or pull requests

2 participants