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

Is their any way to access the User Name of the skypeUser who send a chat to SkypeBot. #90

Open
mayankraipure opened this issue Dec 18, 2014 · 3 comments

Comments

@mayankraipure
Copy link

I want to access the UserName who set a chat to other user .

I have tried with currentUser but It return the user name of skypebot.

@SebastienGllmt
Copy link

I believe that information is attached to the message. Have you tried msg.Sender

@mayankraipure
Copy link
Author

I found the Sender in ChatMessage Class,
and I tried accessing it skype4py.Skype() but Not able to access this Class. Is their any other way to access this Class .

@mayankraipure
Copy link
Author

skype =skype4py.Skype()
msg =skype.Message() //Getting Problem here From where I can get the Id.
msg.Sender.FullName

File "/home/skype/sevabot/modules/prog.py", line 33, in
print 'Sender Name:' , skype.Message().Sender.FullName
File "/usr/local/lib/python2.7/dist-packages/Skype4Py/skype.py", line 665, in Message
o.Status # Test if such an id is known.
File "/usr/local/lib/python2.7/dist-packages/Skype4Py/chat.py", line 573, in _GetStatus
return str(self._Property('STATUS'))
File "/usr/local/lib/python2.7/dist-packages/Skype4Py/chat.py", line 427, in _Property
return self._Owner._Property('CHATMESSAGE', self.Id, PropName, Value, Cache)
File "/usr/local/lib/python2.7/dist-packages/Skype4Py/skype.py", line 296, in _Property
value = self._DoCommand('GET %s' % jarg, jarg)
File "/usr/local/lib/python2.7/dist-packages/Skype4Py/skype.py", line 281, in _DoCommand
raise SkypeError(int(errnum), errstr)
Skype4Py.errors.SkypeError: [Errno 15] Unknown message

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

2 participants