.,.,.,.
This commit is contained in:
parent
576b6adf28
commit
9de245a272
|
@ -144,7 +144,7 @@ class InlineBot:
|
||||||
def asResponse(dct):
|
def asResponse(dct):
|
||||||
if "imageUrl" in dct:
|
if "imageUrl" in dct:
|
||||||
return JSONResponse(dct["authorized"], dct["success"], dct["imageUrl"], "")
|
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"])
|
return JSONResponse(dct["authorized"], dct["success"], "", dct["htmlDescription"])
|
||||||
else:
|
else:
|
||||||
raise Exception("Invalid JSON")
|
raise Exception("Invalid JSON")
|
||||||
|
|
Loading…
Reference in New Issue