Change Help commands

telegram.py is developing, cannot be use yet, plzz ignore it
This commit is contained in:
Denny Dai
2015-05-31 17:30:05 +08:00
parent 1cc087643e
commit 5c511bbe58
4 changed files with 16 additions and 16 deletions
+11
View File
@@ -0,0 +1,11 @@
#coding:utf-8
import tgl
import urllib
import urllib2
def on_msg_receive(msg):
get="from="+urllib.quote(msg.dest.name)+"&text="+urllib.quote(msg.text)
url="http://1.vps.dennx.com/onmessage.php?"
req=urllib2.Request(url+get)
res=urllib2.urlopen(req).read()
print res