Skip to content

Instantly share code, notes, and snippets.

@Surye
Created June 17, 2015 05:45
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/c53d2d3965baeaf98794 to your computer and use it in GitHub Desktop.
Save Surye/c53d2d3965baeaf98794 to your computer and use it in GitHub Desktop.
import tgl
def info(success, peer):
print(peer.user_list)
def on_msg_receive(msg):
peer = msg.dest
if peer.type is tgl.PEER_CHAT:
tgl.chat_info(peer, info)
def on_secret_chat_update(peer, types):
return "on_secret_chat_update"
tgl.set_on_msg_receive(on_msg_receive)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment