SkPy icon indicating copy to clipboard operation
SkPy copied to clipboard

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

Open mihalt opened this issue 3 years ago • 5 comments

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?

mihalt avatar May 27 '22 13:05 mihalt

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?

Terrance avatar May 27 '22 18:05 Terrance

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?

mihalt avatar May 27 '22 18:05 mihalt

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

Terrance avatar May 27 '22 23:05 Terrance

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?

mihalt avatar May 28 '22 04:05 mihalt

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.

Terrance avatar May 29 '22 09:05 Terrance