From c5c9422c7aeaef08430aa1cb952c759545312e01 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 23 Sep 2015 21:35:20 +0200 Subject: [PATCH] Magari si sistema il bug. Eh? --- adventuremode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adventuremode.py b/adventuremode.py index 2c8aeae1..4bec4cd4 100644 --- a/adventuremode.py +++ b/adventuremode.py @@ -60,8 +60,8 @@ def getUpdates(): #Aggiorna l'update ID sul file writeFile("lastid.txt", str(data['result'][0]['update_id'] + 1)) #...esiste il messaggio? telegram wtf - if(data['result'][0]['message'] != None): - if(data['result'][0]['message']['text'] != None): + if(data['result'][0]['message'] != []): + if(data['result'][0]['message']['text'] != []): return data['result'][0]['message'] else: raise KeyError("Qualcosa nel messaggio di Telegram รจ andato storto. Molto storto.")