From cb21d49ceee8ce6bd3023ebeaaa54456f28d6e4f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 21 Aug 2015 23:26:39 +0200 Subject: [PATCH] =?UTF-8?q?o=20cos=C3=AC=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalbot.py b/royalbot.py index 38f7ad26..7e3d7d17 100644 --- a/royalbot.py +++ b/royalbot.py @@ -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