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

magari così?

This commit is contained in:
Steffo 2015-08-21 23:25:11 +02:00
parent d692252e0f
commit b0af0f89e8

View file

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