forked from HonusBot/HonusBot
.,.,.,.
This commit is contained in:
parent
576b6adf28
commit
9de245a272
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user