From b0af0f89e874f692f50f38c0b35c9e7e2e508f6c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 21 Aug 2015 23:25:11 +0200 Subject: [PATCH] =?UTF-8?q?magari=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 3d7a8fea..38f7ad26 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]): + 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