Fix typo
This commit is contained in:
parent
b48b9d8095
commit
54f2579567
|
@ -18,7 +18,7 @@ async def loli(client, inline_query):
|
|||
mode = 1
|
||||
else:
|
||||
mode = 2
|
||||
async with session.get(f'https://api.lolicon.app/setu?num=1&r18={mode}&keyword={urlencode(match.group(2).strip())}&apikey={urlencode(config["config"].get("lollicon_api", ""))}') as resp:
|
||||
async with session.get(f'https://api.lolicon.app/setu?num=1&r18={mode}&keyword={urlencode(match.group(2).strip())}&apikey={urlencode(config["config"].get("lolicon_api", ""))}') as resp:
|
||||
data = await resp.json()
|
||||
if data['code'] or data['msg']:
|
||||
item = InlineQueryResultArticle(f'Error {data["code"]}', InputTextMessageContent(f'<b>{html.escape(str(data["code"]))}:</b> {html.escape(data["msg"])}', parse_mode='html'), description=data['msg'] or None)
|
||||
|
|
Loading…
Reference in New Issue