This commit is contained in:
Christian Rendina 2020-05-05 12:07:55 +02:00
parent 576b6adf28
commit 9de245a272
1 changed files with 1 additions and 1 deletions

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")