SkPy
SkPy copied to clipboard
How does software understand from what account to invite or to delete user?
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?
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?
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?
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
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
SkypeUserfrom oneSkypeinstance, then any actions on that user will be from the same account as that of theSkypeinstance. You can check theskypeattribute 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?
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.