Created
June 17, 2015 06:12
-
-
Save Surye/33cee116fe8d1bbca67d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tgl | |
def cinfo(success, chat): | |
for userid in chat.user_list: | |
user = tgl.Peer(type=tgl.PEER_USER, id=userid) | |
print(user) | |
def dlist(success, dialog_list): | |
for dialog in dialog_list: | |
if dialog['peer'].type is tgl.PEER_CHAT: | |
chat = dialog['peer'] | |
chat.info(cinfo) | |
tgl.get_dialog_list(dlist) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment