1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2015-08-21 23:26:39 +02:00
parent b0af0f89e8
commit cb21d49cee

View file

@ -144,7 +144,7 @@ while(True):
data = getUpdates()
#Se c'e' un nuovo messaggio
if(data['ok']):
if(data['result'][0] is not None):
if(data['result'] != []):
#Aggiorna l'update ID sul file
writeFile("lastid.txt", str(data['result'][0]['update_id'] + 1))
#Leggi i dati del messaggio