This commit is contained in:
Christian Rendina 2020-05-05 12:07:55 +02:00
parent 576b6adf28
commit 9de245a272

View File

@ -144,7 +144,7 @@ class InlineBot:
def asResponse(dct):
if "imageUrl" in dct:
return JSONResponse(dct["authorized"], dct["success"], dct["imageUrl"], "")
else if "htmlDescription" in dct:
elif "htmlDescription" in dct:
return JSONResponse(dct["authorized"], dct["success"], "", dct["htmlDescription"])
else:
raise Exception("Invalid JSON")