Guest User

Untitled

a guest
Oct 17th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/usr/bin/python3
  2. from skpy import Skype, SkypeChats
  3. from getpass import getpass
  4. #sk = Skype('trongdd@outlook.com', getpass(), '.tokens-skype')
  5. sk = Skype(tokenFile='.tokens-skype')
  6. 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