Created
June 17, 2015 06:20
-
-
Save Surye/3d7feffe522d6376db46 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 | |
users = [] | |
def cinfo(success, chat): | |
for userid in chat.user_list: | |
user = tgl.Peer(type=tgl.PEER_USER, id=userid) | |
users.append(user) | |
if user.username == 'Surye': | |
tgl.create_group_chat(users, "Testing You Can leave") | |
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) | |
I was just wondering how "Testing You Can leave" have same members as telex-dev :P
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
oh wow
Cool