♻️ Convert cqcode to tgcode
This commit is contained in:
parent
13a0c62f43
commit
7882e1460f
@ -248,7 +248,7 @@ async def push():
|
|||||||
if i['gid'] == "on":
|
if i['gid'] == "on":
|
||||||
await app.send_message(int(i['qid']), i['message'])
|
await app.send_message(int(i['qid']), i['message'])
|
||||||
else:
|
else:
|
||||||
await app.send_message(int(i['gid']), f"[NOTICE](tg://user?id={i['qid']})" + "\n" + i['message'])
|
await app.send_message(int(i['gid']), f"[NOTICE {i['qid']}](tg://user?id={i['qid']})" + "\n" + i['message'])
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -272,7 +272,7 @@ async def daily_sign():
|
|||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
else:
|
else:
|
||||||
im = await sign(str(row[0]))
|
im = await sign(str(row[0]))
|
||||||
message = f"[CQ:at,qq={row[2]}]\n{im}"
|
message = f"[NOTICE {row[2]}](tg://user?id={row[2]})\n\n{im}"
|
||||||
for i in temp_list:
|
for i in temp_list:
|
||||||
if row[4] == i["push_group"]:
|
if row[4] == i["push_group"]:
|
||||||
i["push_message"] = i["push_message"] + "\n" + message
|
i["push_message"] = i["push_message"] + "\n" + message
|
||||||
|
@ -261,7 +261,7 @@ async def inline_process(client: Client, query: InlineQuery):
|
|||||||
if nums == 0:
|
if nums == 0:
|
||||||
return await query.answer(
|
return await query.answer(
|
||||||
results=[],
|
results=[],
|
||||||
switch_pm_text=f'{emoji.CROSS_MARK} 字符串 "{text}" 没有搜索到任何结果',
|
switch_pm_text=f'{emoji.CROSS_MARK} 字符串 "{" ".join(text)}" 没有搜索到任何结果',
|
||||||
switch_pm_parameter="start",
|
switch_pm_parameter="start",
|
||||||
)
|
)
|
||||||
await query.answer(data)
|
await query.answer(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user