Created
June 17, 2015 05:45
-
-
Save Surye/c53d2d3965baeaf98794 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 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