Skip to content

Instantly share code, notes, and snippets.

@Surye
Created June 17, 2015 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Surye/3d7feffe522d6376db46 to your computer and use it in GitHub Desktop.
Save Surye/3d7feffe522d6376db46 to your computer and use it in GitHub Desktop.
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)
@nisarul
Copy link

nisarul commented Jun 17, 2015

oh wow
Cool

@nisarul
Copy link

nisarul commented Jun 17, 2015

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