mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
o così?
This commit is contained in:
parent
b0af0f89e8
commit
cb21d49cee
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue