Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- from skpy import Skype, SkypeChats
- from getpass import getpass
- #sk = Skype('trongdd@outlook.com', getpass(), '.tokens-skype')
- sk = Skype(tokenFile='.tokens-skype')
- print('\n'.join('%s %s %s: %s' % (getattr(x.chat, 'topic', x.chat.id), x.time, x.user.name, x.content) for c in sk.chats.recent() for x in sorted([m for m in sk.chats[c].getMsgs() if not m.type.endswith('Member')], key=lambda m: m.time)[:9]))
Add Comment
Please, Sign In to add comment