1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Constructors!

This commit is contained in:
Steffo 2015-09-24 21:25:28 +02:00
parent 824273bef1
commit 3a4416799e

View file

@ -60,6 +60,7 @@ def getUpdates():
if(data['result'] != []): if(data['result'] != []):
#Aggiorna l'update ID sul file #Aggiorna l'update ID sul file
writeFile("lastid.txt", str(data['result'][0]['update_id'] + 1)) writeFile("lastid.txt", str(data['result'][0]['update_id'] + 1))
parametri['offset'] = str(int(parametri['offset']) + 1)
#...esiste il messaggio? telegram wtf #...esiste il messaggio? telegram wtf
if(data['result'][0]['message'] != None): if(data['result'][0]['message'] != None):
if(data['result'][0]['message']['text'] != ""): if(data['result'][0]['message']['text'] != ""):